View source: R/util_CountSamplesPerGroup.R
CountSamplesPerGroup | R Documentation |
Find minimum sample size for each group which is decided by the combination of variables with class character or factor.
CountSamplesPerGroup(pheno_df, responses_char, covariates_char)
pheno_df |
A data frame with phenotype and covariates, which should
include all the samples in |
responses_char |
A character vector of names of response variables in
|
covariates_char |
A character vector of names of covariate variables in
|
An integer.
exm_pheno <- readRDS( system.file( "extdata", "pheno_df.RDS", package = 'rnaEditr', mustWork = TRUE ) ) CountSamplesPerGroup( pheno_df = exm_pheno, responses_char = "sample_type", covariates_char = "race" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.