as_fhx: Cast data frame or list-like to 'fhx' object

Description Usage Arguments Value See Also Examples

View source: R/utils.R

Description

Cast data frame or list-like to fhx object

Usage

1
as_fhx(x)

Arguments

x

A data frame or list-like object to cast. Must have named elements for "year", "series", and "rec_type".

Value

x cast to an fhx object.

See Also

Examples

1
2
3
data(lgr2)
example_dataframe <- as.data.frame(lgr2)
back_to_fhx <- as_fhx(example_dataframe)

burnr documentation built on March 10, 2021, 5:07 p.m.