partition (version 0.1.0)

filter_reduced: Filter the reduced mappings

Description

filter_reduced() and unnest_reduced() are convenience functions to quickly retrieve the mappings for only the reduced variables. filter_reduced() returns a nested tibble while unnest_reduced() unnests it.

Usage

filter_reduced(.partition)

unnest_reduced(.partition)

Arguments

.partition

a partition object

Value

a tibble with mapping key

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)
# fit partition
prt <- partition(df, threshold = .6)


# A tibble: 3 x 4
filter_reduced(prt)

# A tibble: 9 x 4
unnest_reduced(prt)

# }

Run the code above in your browser using DataLab