as.fhx {burnr} | R Documentation |
Alias to as_fhx()
Description
Alias to as_fhx()
Usage
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
-
fhx()
constructs anfhx
object. -
is_fhx()
test whether object isfhx
. -
make_rec_type()
helpful to convertrec_type
-like character vectors to full facors with proper levels.
Examples
data(lgr2)
example_dataframe <- as.data.frame(lgr2)
back_to_fhx <- as_fhx(example_dataframe)
[Package burnr version 0.6.1 Index]