Description Usage Arguments Value Examples
Given a list of indices assumed to in ranked order, generate a set of cumulative indices wherein the indices are essentially collapsed together.
1 | cum_indices(indices_list, direction = "low_to_high")
|
indices_list |
the list of indices we want to work with |
direction |
which way to put the indices together (low_to_high or high_to_low) |
new indices_list with cumulative indices
1 2 3 | indices_list <- list("1" = c(1,2,3), "2" = c(4,5,6), "3" = c(7,8,9))
cum_indices(indices_list, "low_to_high")
cum_indices(indices_list, "high_to_low")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.