R - describe() output to a data frame
<p>I want to create a data frame using describe() function. Dataset under consideration is iris. The data frame should look like this:</p>

<pre><code>    Variable    n   missing unique  Info    Mean    0.05    0.1   0.25  0.5    0.75 0.9   0.95
   Sepal.Length 150    0    35      1       5.843   4.6     4.8   5.1   5.8    6.4  6.9   7.255
   Sepal.Width  150    0    23      0.99    3.057   2.345   2.5   2.8   3      3.3  3.61  3.8
Petal.Length    150    0    43      1       3.758   1.3     1.4   1.6   4.35   5.1  5.8   6.1
 Petal.Width    150    0    22      0.99    1.199   0.2     0.2   0.3   1.3    1.8  2.2   2.3
     Species    150    0    3                                   
</code></pre>

<p>Is there a way out to coerce the output of describe() to data.frame type? When I try to coerce, I get an error as shown below:</p>

<pre><code>library(Hmisc)
statistics &lt;- describe(iris)
statistics[1]
first_vec &lt;- statistics[1]$Sepal.Length
as.data.frame(first_vec)
#Error in as.data.frame.default(first_vec) : cannot coerce class ""describe"" to a data.frame
</code></pre>

<p>Thanks</p>