Description Usage Arguments Details Value See Also Examples
View source: R/array_munging.R
Spread data.frame
1 | spread_array(data, value, ...)
|
data |
a dataframe with integer indexed positions in an array |
value |
data to be spread into the array |
... |
unquoted dimnames used to build array |
make sure all colnames supplied to ... are consecutive interger indexed positions
multidimensional array
gather_array
1 2 3 4 | a <- array(1:100, dim=c(10, 5, 2))
ga <- gather_array(a, sequence, A, B, C)
head(ga)
spread_array(ga, sequence, A, B, C)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.