squashPADistList: Convert an aggPADistList to a single data frame that's ready...

Description Usage Arguments Value

View source: R/display.r

Description

Convert an aggPADistList to a single data frame that's ready to be displayed.

Usage

1
squashPADistList(aggPADistList, long = F, clustVariables = NULL)

Arguments

aggPADistList

The result of calling clustApply(FUN = function(u) dplyr::select(calculatePADist(u, agg = T) , flash_report_category, pct_platform_actions) ) on a userClust object.

long

Logical; should data be returned in long format (T) or wide format (F)?

clustVariables

Character vector. Variables that were used in the clustering process. All variables but these will be dropped, and percentages will be re-computed based on these variables only. If left null, then no variables will be dropped.

Value

A data frame showing each cluster's aggregate platform action distribution.


johnchower/oneD7 documentation built on May 19, 2019, 4:21 p.m.