split_into_equal_parts: Function to spit a data frame/tibble into equal sized...

View source: R/split_nrow.R

split_into_equal_partsR Documentation

Function to spit a data frame/tibble into equal sized parts/pieces.

Description

The final part may have a different number of rows than all other parts because of the length of the input cannot always be divided equality.

Usage

split_into_equal_parts(df, n_parts = 10)

Arguments

df

Data frame or tibble to be split.

n_parts

Number of parts/pieces to split df into.

Value

A named list with the length of n_parts.

Author(s)

Stuart K. Grange


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