applyFunInPairwiseManner: Apply function in pairwise cases manner given data frame plus...

Description Usage Arguments Value

View source: R/applyFunInPairwiseManner.R

Description

Allows application of any function in pairwise cases manner as long as the inputs to the function can be a subset of inputed data frame and annotation. It creates iterative data frame and annotation cases in pairwise manner and supplements these iterations to the FUN. More parameters to FUN can also be supplied.

Usage

1

Arguments

df

A data frame where columns represent samples

anno

Annotation. Make sure row.names(anno) correspond to sample names in the same order as in df and that it has a unique cases colum named "condition" in the first column, i.e. anno[,1].

FUN

The function we want to supply. It takes in a pair-wise compliant subset of original df and anno.

...

Ellipsis. Other arguments to be supplied to the FUN.

Value

A list where elements are outputs of FUN in a pairwise fashion.


msxakk89/dat documentation built on Aug. 3, 2020, 6:39 p.m.