partition (version 0.1.0)

map_partition: Map a partition across a range of minimum information

Description

map_partition() fits partition() across a range of minimum information values, specified in the information argument. The output is a tibble with a row for each value of information, a summary of the partition, and a list-col containing the partition object.

Usage

map_partition(.data, partitioner = part_icc(), ...,
  information = seq(0.1, 0.5, by = 0.1))

Arguments

.data

a data set to partition

partitioner

the partitioner to use. The default is part_icc().

...

arguments passed to partition()

information

a vector of minimum information to fit in partition()

Value

a tibble

Examples

Run this code
# NOT RUN {
set.seed(123)
df <- simulate_block_data(c(3, 4, 5), lower_corr = .4, upper_corr = .6, n = 100)

map_partition(df, partitioner = part_pc1())

# }

Run the code above in your browser using DataCamp Workspace