Description Usage Arguments Value Examples
Converts the results of by() to a data.frame if possible, (reducing dimensionality and adding repetition as necessary)
1 2 3 4 5 |
x |
The by object |
row.names |
Names of the rows. If NULL, function tries guessing them |
optional |
Ignored. |
colnames |
Names of columns |
na.rm |
Remove NAs or not. |
... |
Pass-alongs. |
A data.frame.
1 2 3 4 5 6 | test.by <- by( ChickWeight$weight, ChickWeight$Diet, mean)
test.by
class(test.by)
str(test.by)
test.df <-as.data.frame(test.by)
str(test.df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.