partition: Data partitioning

Description Usage Arguments Value

Description

partition generates random partitions of the input dataset into smaller groups.

Usage

1
partition(df, n, probs)

Arguments

df

Input dataset to be partitioned.

n

Number of random partitions.

probs

A named vector of probabilities defining the names and relative sizes of each subsequent subgroup.

Value

A character vector of size n in which each entry contains the name of one of the subgroups defined in the probs vector.


astamm/fdahotelling documentation built on May 10, 2019, 2:05 p.m.