cum_indices: cumulative indices

Description Usage Arguments Value Examples

View source: R/parp1.R

Description

Given a list of indices assumed to in ranked order, generate a set of cumulative indices wherein the indices are essentially collapsed together.

Usage

1
cum_indices(indices_list, direction = "low_to_high")

Arguments

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)

Value

new indices_list with cumulative indices

Examples

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")

rmflight/fmcorrelationbreastcaparp1 documentation built on May 27, 2019, 9:31 a.m.