count_observations: count observations

View source: R/utils.R

count_observationsR Documentation

count observations

Description

Count observations per group in an association study. Output is a data frame, with the strata with smallest number of observations on top

Usage

count_observations(data, stratum = NULL, response.names = NULL)

Arguments

data

data.frame

stratum

any blocking vars. can be empty

response.names

any response names/other vars to block by. Can be empty

Value

a data frame with number of observations

Examples

count_observations(immune_data, stratum = c("Batch", "Sex"))

LDSamson/associationstudies documentation built on April 14, 2025, 11:52 a.m.