Description Usage Arguments Value Examples
This function pulls the the first and last day of every year of the date vector.
1 | lpdates2(x, year1=1981, date1="01-01", date2="12-31")
|
x |
Date vector |
year1 |
The year the Date vector starts on |
date1 |
January 1st |
date2 |
December 31st |
A vector of indexes that correspond to the two dates every year, with respect to the start date.
NOTE: It would be significantly easier to save the output as a variable called 'dated', especially when using rasters so that you do not have to create an intermediate function.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.