Description Usage Arguments Value Examples
View source: R/util_CountSamplesPerGroup.R
Find minimum sample size for each group which is decided by the combination of variables with class character or factor.
1 | 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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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.