## Loading ltm Cat object
data(ltm_cat)
## Setting complete branches to include 3 items
setLengthThreshold(ltm_cat) <- 3
## Object returned is list of lists
ltm_list <- makeTree(ltm_cat)
## Object returned is table
ltm_table <- makeTree(ltm_cat, flat = TRUE)
Run the code above in your browser using DataLab