Arguments
data
A data.frame or matrix containing the individual data (columns) for
several genes (rows) from which to calculate the test statistic FUN
groupID
A character vector or list. If character, include the group IDs, to be used as patterns in grep. Make sure the names are unique enough to match only what you want them to. To include all groups for a data type, set groupID = "all","", or "*"
colID
A character vector of the columns of interest (e.g. FPKM). To include all columns for each group, set colID = "all","", or "*"
. colID
is ignored if groupID
is a list.
combineCols
Logical, should the resulting columns be put into one data.frame (default, combineCols = TRUE
),
or left as enteries in a list.
matchEnd
Logical, should the colId
pattern only match the end of the string.
FUN
Either be a function or a character that can be coerced to function using match.fun(FUN)
. This will be used to name the output columns if functionName
is not set. If not a character, set functionName to assign column names for
functionName
A string to use in naming the output columns or list names. Defaults to as.character(FUN)
if not set.