Complete Age Group Array
complete_agegrp_arr.Rd
This function generates a complete array of age groups based on the format check results and existing age group data. It is particularly useful for completing missing age groups in datasets
Examples
if (FALSE) { # \dontrun{
# Example usage:
data_frame <- data.frame(age = c(2, 5, 15, 16), age_group = c("01-05", "6-10", "11-15", "16-20"))
format_check_results <- list(equal_sizing = TRUE, agegrp_div = "-", other_punct_char = list(), format_agegrp_xx = 2)
complete_agegrp_arr(data_frame, format_check_results)
} # }