countSampleSizes: Produce a table of counts of all combinations of phenotype...

Description Usage Arguments Value

View source: R/RNASeqUtilities.R

Description

Count number of instances for each combination of factor levels in relation to reference factor. First column of return data.frame is total number of elements for each level of 'ref'. Used to calculate sample sizes for experimental designs.

Usage

1
countSampleSizes(dat, ref, factors)

Arguments

dat

data.frame of phenotype variables. Each row is one sample and each column is a factor of interest

ref

character string or numeric column index referencing column for which 'factors' is tabulated on.

factors

vector of column labels or column indices defining which factors are to be tabulated.

Value

data.frame showing frequencies of 'factors' levels for 'ref'


carlmurie/RNASeqUtilities documentation built on Sept. 1, 2019, 11:54 p.m.