Description Usage Arguments Value
View source: R/RNASeqUtilities.R
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.
1 | countSampleSizes(dat, ref, factors)
|
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. |
data.frame showing frequencies of 'factors' levels for 'ref'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.