age_labels: Provides sortable labels for age groups

View source: R/age_helpers.R

age_labelsR Documentation

Provides sortable labels for age groups

Description

Provides sortable labels for age groups

Usage

age_labels(age_cuts)

Arguments

age_cuts

(numeric())
The lower bound of the groups (0 is implicitly included).

Value

A vector of labels with zero-padded numerics so they can be sorted easily.

Examples

  age_labels(c(5, 12, 20, 30))

diseasystore documentation built on April 4, 2025, 5:56 a.m.