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