split_nrow: Function to split a data frames and vectors into lists with...

View source: R/split_nrow.R

split_nrowR Documentation

Function to split a data frames and vectors into lists with n elements based on number of rows or length.

Description

Function to split a data frames and vectors into lists with n elements based on number of rows or length.

Usage

split_nrow(df, rows)

Arguments

df

Data frame or vector to be split.

rows

Number of rows for df to be split by. In the case of a vector, rows is length.

Value

List with n elements.

Author(s)

Stuart K. Grange

Examples

## Not run: 

# Split a large data frame into chunks
data_large_list <- split_nrow(data_large, 500000)


## End(Not run)


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.