sort.fhx | R Documentation |
fhx
object by the earliest or latest yearSort the series names of fhx
object by the earliest or latest year
## S3 method for class 'fhx' sort(x, decreasing = FALSE, sort_by = "first_year", ...)
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. |
A copy of x
with reordered series.
fhx()
constructs an fhx
object.
as_fhx()
casts data frame-like object into an fhx
object.
series_names()
get all the series in an fhx
object.
delete()
remove observations from an fhx
object.
+.fhx()
concatenate multiple fhx
objects together.
data(lgr2) plot(sort(lgr2, decreasing = TRUE)) plot(sort(lgr2, sort_by = "last_year"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.