ch.listMultiElementComb: This function combines a list into a single vector

View source: R/ch.listMultiElementComb.r

ch.listMultiElementCombR Documentation

This function combines a list into a single vector

Description

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.

Usage

ch.listMultiElementComb(list.data, combType = "mean", replace = TRUE)

Arguments

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.

Value

a vector of values that combines all the columns in df.data with probMax samples devoted to the column with the max(median())

Examples

ch.listMultiElementComb (df.data, combType = "mean")

ccpluncw/ccpl_R_chValues documentation built on Feb. 12, 2024, 4:21 a.m.