as.list.df.by.row: as.list.df.by.row

View source: R/CodeAndRoll2.R

as.list.df.by.rowR Documentation

as.list.df.by.row

Description

Split a dataframe into a list by its columns.

Usage

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

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.

verbose

Whether to print messages.

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.row(dtf)


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