Description Usage Arguments Value Examples
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
1 | yr_range(x, yr.vec = as.numeric(names(x)))
|
x |
a numeric vector |
yr.vec |
a character- or numeric vector containing years with the same length as x |
a character vector of length 2 containing the first and last year
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.