yr_range: yr_range

Description Usage Arguments Value Examples

Description

function yr_range from dplR, extracts the first and last year in yr.vec where the corresponding numeric vector shows a value different to NA

Usage

1
yr_range(x, yr.vec = as.numeric(names(x)))

Arguments

x

a numeric vector

yr.vec

a character- or numeric vector containing years with the same length as x

Value

a character vector of length 2 containing the first and last year

Examples

1
2
3
4
5
6
7
## Not run: 
library(dplR)
data(ca533)
yr_range(ca533[ ,1], rownames(ca533))
#[1] "1530" "1983"

## End(Not run)

konradmayer/trlboku documentation built on July 3, 2020, 9:49 p.m.