partition: Partition data into chunks

Description Usage Arguments Methods (by class)

View source: R/r_utils.R

Description

Partition a vector, list matrix or data.frame into a list of vectors, lists, matrices or data.frames respectively, each of the same size (last might be smaller).

Usage

1
2
3
4
5
6
7
partition(data, size)

## S3 method for class 'data.frame'
partition(data, size)

## Default S3 method:
partition(data, size)

Arguments

data

the data to partition

size

the partition size

Methods (by class)


hoesler/dbj documentation built on May 15, 2017, 11:53 p.m.