DiffAge: Difference Age Vector

Description Usage Arguments Details Value

Description

Get width of age groups from differenced age vector.

Usage

1
DiffAge(x, last_open = FALSE)

Arguments

x

Start of age interval.

last_open

Is the last age group open (TRUE) or closed (FALSE, default).

Details

If the last age group is closed it is assumed to have the same width as the preceeding age group. If the last age group is open, the width is set to NA.

Value

The widths of the age groups as a numeric vector of length(x).


jschoeley/pash documentation built on May 20, 2019, 2:07 a.m.