flatten2ranger | R Documentation |
Produces a flat matrix from data
, a potentially 3-dimensional array.
The column names of the new matrix are produced by pasting the dimnames
together, using sep
as separator.
flatten2ranger(data, cols, sep = "$")
data |
matrix or 3D array. The data to flatten. |
cols |
vector. The (optional) columns to use. |
sep |
string. A separator to use when building the new column names. |
A matrix containing data
reduced to cols
, with
the third dimension inserted as extra columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.