flatten | R Documentation |
Flatten a data.frame or matrix by column or row with its name. The name will be transformed into the number of row/column plus the name of column/row separated by '.'.
flatten(x, by = c("col", "row"))
x |
a data.frame or matrix. |
by |
either by column or by row. |
a flattened vector with names
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.