vital_vars function

Return vital variables

Return vital variables

A vital object is a special case of a tsibble object with additional attributes identifying the age, sex, deaths, births and population variables. vital_vars() returns a character vector the names of the vital variables.

vital_vars(x)

Arguments

  • x: A tsibble object.

Returns

A character vector of the names of the vital variables.

Examples

vital_vars(aus_mortality)