as.list.df.by.row | R Documentation |
Split a dataframe into a list by its columns.
## S3 method for class 'df.by.row'
as.list(
dtf,
na.omit = TRUE,
zero.omit = FALSE,
omit.empty = FALSE,
verbose = TRUE
)
dtf |
A dataframe. |
na.omit |
Whether to omit rows with missing values. |
zero.omit |
Whether to omit rows with all-zero values. |
omit.empty |
Whether to omit rows with zero length. |
verbose |
Whether to print messages. |
A list.
dtf <- data.frame(x = c(1, 2, NA), y = c(3, 4, 0), z = c(5, 6, 7))
as.list.df.by.row(dtf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.