powered by
Warn about missing stratifying variables in a dataset
warn.missing.strata(data, strata, dataname)
a character() vector of the subset of stratifying variables that are present in pop_data
character()
pop_data
the dataset that should contain the strata
a data.frame() showing the strata levels that are expected to be in the dataset
data.frame()
the name of the dataset, for use in warning messages if some strata are missing.
if (FALSE) { expected_strata <- data.frame(Species = "banana", type = "orchid") warn.missing.strata(iris, expected_strata, dataname = "iris") }
Run the code above in your browser using DataLab