Description Usage Arguments Value Note See Also Examples
Convert all but the first dimension of replication of an array or data list into variables. Currently an experimental function.
1 2 3 4 5 6 7 8 9 10 | variablize(x, ...)
## Default S3 method:
variablize(x, ...)
## S3 method for class 'factor'
variablize(x, ...)
## S3 method for class 'data.list'
variablize(x, ...)
|
x |
A data list |
... |
Not currently used |
A data frame with the first dimension of x
representing the observations (rows) and all other dimensions of x
treated as variables (columns). If x
is a data.list
then any variable not replicated along the first dimension is removed.
To use a dimension other than the first as the rows of the data frame, transpose the array (aperm
) or data list (aperm.data.list
) first.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.