get_year {burnr} | R Documentation |
Extract fhx
observations for given years
Description
Extract fhx
observations for given years
Usage
get_year(x, yr)
Arguments
x |
An |
yr |
Numeric vector of year(s) to extract from |
Value
An fhx
object.
See Also
-
year_range()
get earliest and latest year in anfhx
object. -
get_series()
subset anfhx
object to select series. -
delete()
remove observations from anfhx
object. -
get_event_years()
gets years for various events in anfhx
object.
Examples
data(lgr2)
get_year(lgr2, 1806)
get_year(lgr2, 1805:1807)
## Not run:
# Subsetting before/after a specific year requires a
# call to year_range(). For example, to extract all observations
# prior to 1900, use
get_year(lgr2, year_range(lgr2)[1]:1900)
## End(Not run)
[Package burnr version 0.6.1 Index]