View source: R/ch.listMultiElementComb.r
ch.listMultiElementComb | R Documentation |
This function combines a list into a single vector by applying a function across the elements. Essentially, this function will identify the minimum length of all the elements (minN), then sample each element with a size of minN. It will treat each sample as a column in a dataframe and apply rowMeans or rowSums.
ch.listMultiElementComb(list.data, combType = "mean", replace = TRUE)
combType |
A string that specifies the combination statistic. Currently, two are implemented: "mean" and "sum" |
replace |
A boolean that specifies whether the sample is take with replacement or not. DEFAULT = TRUE |
df.data |
A list with each element filled with numbers. |
a vector of values that combines all the columns in df.data with probMax samples devoted to the column with the max(median())
ch.listMultiElementComb (df.data, combType = "mean")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.