is_abridged: Detect if a vector of lower age bounds is plausibly of...

View source: R/utilsAge.R

is_abridgedR Documentation

Detect if a vector of lower age bounds is plausibly of abridged ages.

Description

A logical utility that checks if a given vector is of the lower bounds of abridged age groups or not.

Usage

is_abridged(Age)

Arguments

Age

integer. Vector of lower age bounds.

Value

Logical TRUE if abridged, FALSE otherwise.

Examples

# as expected, TRUE
is_abridged(c(0,1,5,10,15,20,25))
# standard 5, not abridged, FALSE
is_abridged(c(0,5,10,15,20,25))
# plausible, TRUE
is_abridged(c(1,5,10,15,20,25))
# plausible, TRUE
is_abridged(c(5,10,15,20,25))
# 10 year age group not abridged, FALSE
is_abridged(c(0,1,5,10,15,25))

timriffe/DemoTools documentation built on Oct. 14, 2024, 12:53 p.m.