| sort.fhx {burnr} | R Documentation |
Sort the series names of fhx object by the earliest or latest year
Description
Sort the series names of fhx object by the earliest or latest year
Usage
## S3 method for class 'fhx'
sort(x, decreasing = FALSE, sort_by = "first_year", ...)
Arguments
x |
An |
decreasing |
Logical. Decreasing sorting? Defaults to |
sort_by |
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. |
Value
A copy of x with reordered series.
See Also
-
fhx()constructs anfhxobject. -
as_fhx()casts data frame-like object into anfhxobject. -
series_names()get all the series in anfhxobject. -
delete()remove observations from anfhxobject. -
+.fhx()concatenate multiplefhxobjects together.
Examples
data(lgr2)
plot(sort(lgr2, decreasing = TRUE))
plot(sort(lgr2, sort_by = "last_year"))
[Package burnr version 0.6.1 Index]