powered by
fhx
Sort the series names of fhx object by the earliest or latest year
# S3 method for fhx sort(x, decreasing = FALSE, sort_by = "first_year", ...)
An fhx object to sort.
Logical. Decreasing sorting? Defaults to FALSE.
FALSE
Either "first_year" or "last_year". Designates the inner or outer year for sorting. Defaults to "first_year"
Additional arguments that fall off the face of the universe.
A copy of x with reordered series.
x
fhx() constructs an fhx object.
fhx()
as_fhx() casts data frame-like object into an fhx object.
as_fhx()
series_names() get all the series in an fhx object.
series_names()
delete() remove observations from an fhx object.
delete()
+.fhx() concatenate multiple fhx objects together.
+.fhx()
# NOT RUN { data(lgr2) plot(sort(lgr2, decreasing = TRUE)) plot(sort(lgr2, sort_by = "last_year")) # }
Run the code above in your browser using DataLab