get_sample_size_stats: Get Sample Size Statistics for Given Dimension Combnation

Description Usage Arguments Value Examples

View source: R/check_sample_size.R

Description

Get Sample Size Statistics for Given Dimension Combnation

Usage

1
get_sample_size_stats(dataset, draw_figure = TRUE, ...)

Arguments

dataset

data frame of raw data or renamed data.

draw_figure

logical, default TRUE. If TRUE this function will draw histogram of sample size of given dimension combination.

...

dimensions

Value

a list with sample size data frame, minimum, median and maximum sample size.

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))
# get_sample_size_stats(data, draw_figure = FALSE, a, b)

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