powered by
fhx
Cast data frame or list-like to fhx object
as_fhx(x)
A data frame or list-like object to cast. Must have named elements for "year", "series", and "rec_type".
x cast to an fhx object.
x
fhx() constructs an fhx object.
fhx()
is_fhx() test whether object is fhx.
is_fhx()
make_rec_type() helpful to convert rec_type-like character vectors to full facors with proper levels.
make_rec_type()
rec_type
# NOT RUN { data(lgr2) example_dataframe <- as.data.frame(lgr2) back_to_fhx <- as_fhx(example_dataframe) # }
Run the code above in your browser using DataLab