Description Usage Arguments Value Author(s) References Examples
View source: R/unlist_by_row.R
Unlists the values in a rectangular dataset (like a matrix
,
data.frame
, or data.table
) by row.
1 2 3 | unlist_by_row(indt, source = TRUE)
unlist_by_col(indt, source = TRUE)
|
indt |
The input dataset. |
source |
Logical. Should columns indicating the original row and column
positions be returned. Defaults to |
A data.table
if source = TRUE
or a vector.
Ananda Mahto
http://stackoverflow.com/q/36073947/1270695
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.