Learn R Programming

burnr (version 0.6.1)

make_rec_type: 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

Run this code
# NOT RUN {
make_rec_type("null_year")

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

# }

Run the code above in your browser using DataLab