dict_slice: Extract counts from a hierarchical dictionary

Description Usage Arguments Value

View source: R/rjca.R

Description

Takes a complete dictionary report and constructs a valid contingency table by slicing the dictionary at 'level'. Uses _ as a level marker in the column names.

Usage

1
dict_slice(df, level = 1, subtree = TRUE)

Arguments

df

the dictionary output

level

which level of the dictionary to get counts for

subtree

whether to show a full path from the dictionary root (default: FALSE)

Value

dictionary results without super or sub category counts


conjugateprior/rjca documentation built on May 13, 2019, 10:50 p.m.