get_year: Extract 'fhx' observations for given years

Description Usage Arguments Value See Also Examples

View source: R/utils.R

Description

Extract fhx observations for given years

Usage

1
get_year(x, yr)

Arguments

x

An fhx object.

yr

Numeric vector of year(s) to extract from x.

Value

An fhx object.

See Also

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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)

burnr documentation built on March 10, 2021, 5:07 p.m.