check_sample_size: Check Sample Size of combinations of dimensions

Description Usage Arguments Value Examples

View source: R/check_sample_size.R

Description

Check Sample Size of combinations of dimensions

Usage

1
check_sample_size(data, dimensions, drug_names = DrugNames, path)

Arguments

data

data frame of raw data or renamed data.

dimensions

character vector of dimensions to be analysis in data.

drug_names

dimension name for drug. The default value is in DrugNames. If dimensions contains drug, then should specify this parameters.

path

character of .xls(x) file path.

Value

a data frame of dimension combination which are encoded with 0/1 and maximum sample size (max_ss), median sample size (med_ss) and minimum sample size (min_ss).

Examples

1
2
data <- data.frame(a=c(1,2,1,2,1,2,1,2), b=c(1,1,2,2,3,3,1,1), c=c(1,1,1,1,1,1,2,2))
check_sample_size(data, dimensions = c('a', 'b', 'c'))

YuanchenZhu2020/antgreens documentation built on Dec. 18, 2021, 8:20 p.m.