powered by
Collect number of subjects and its subset condition
collect_n_subject( meta, population, parameter, listing = FALSE, histogram = FALSE, var_listing = NULL, remove_blank_group = FALSE, type = "Subjects", use_na = c("ifany", "no", "always"), display_total = TRUE )
A list containing number of subjects and its subset condition.
A meta_adam object.
meta_adam
A character value of population term name. The term name is used as key to link information.
A character value of parameter term name. The term name is used as key to link information.
A logical value to display drill down listing per row.
A logical value to display histogram by group.
A character vector of additional variables included in the listing.
A logical value to remove a group with all missing value of a parameter.
A character value to control title name, e.g., Subjects or Records.
A character value for whether to include NA values in the table. See the useNA argument in base::table() for more details.
NA
useNA
base::table()
A logical value to display total column.
suppressWarnings( meta <- meta_example() |> define_parameter(name = "sex", var = "SEX", label = "Sex") ) collect_n_subject(meta, "apat", "sex")
Run the code above in your browser using DataLab