as.list.df.by.col: as.list.df.by.col

View source: R/CodeAndRoll2.R

as.list.df.by.colR Documentation

as.list.df.by.col

Description

Split a dataframe into a list by its rows.

Usage

## S3 method for class 'df.by.col'
as.list(dtf, na.omit = TRUE, zero.omit = FALSE, omit.empty = FALSE)

Arguments

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.

Value

A list.

Examples

dtf <- data.frame(x = c(1, 2, NA), y = c(3, 4, 0), z = c(5, 6, 7))
as.list.df.by.col(dtf)


vertesy/CodeAndRoll2 documentation built on Nov. 20, 2024, 5:23 a.m.