make_rec_type: Turn character vector into factor with proper 'fhx' levels

View source: R/utils.R

make_rec_typeR Documentation

Turn character vector into factor with proper fhx levels

Description

Turn character vector into factor with proper fhx levels

Usage

make_rec_type(x)

Arguments

x

A character vector or factor containing one or more rec_type-like strings. This uses a controlled vocabulary, see burnr:::rec_type_all for list of all possible rec_type values.

Value

A factor with appropriate fhx levels.

See Also

  • fhx() constructs an fhx object.

  • as_fhx() casts data frame-like objects into fhx objects.

Examples

make_rec_type("null_year")

make_rec_type(c("null_year", "late_fs"))


burnr documentation built on March 18, 2022, 7:17 p.m.