chunk_df: chunk dataframes so easy to split for parallel processing

Description Usage Arguments Examples

View source: R/chunk_df.R

Description

chunk dataframes so easy to split for parallel processing

Usage

1
chunk_df(.gdf, ..., .nchunks = NULL)

Arguments

.gdf

(grouped) data frame

...

grouping variables, either a character vector or NSE-style column names

.nchunks

set number of chunks

Examples

1
2
3
4
5
6
7
8
library(dplyr)
Theoph %>% chunk_df()

Theoph %>% group_by(Subject) %>% chunk_df()
Theoph %>% chunk_df(Subject)
Theoph %>% chunk_df(c("Subject"))

Theoph %>% chunk_df(Subject, .nchunks = 3)

PKPDmisc documentation built on April 14, 2020, 5:49 p.m.