Description Usage Arguments Value Examples
This function pulls the dates that correspond with the Mid Summer Drought, and is used in conjuction with the MSD function.
1 | lpdates2(x, year1=1981, date1="05-01", date2="06-01", date3="08-31", date4="10-31")
|
x |
Date vector |
year1 |
The year the Date vector starts on |
date1 |
Start index to find first onset date |
date2 |
End index to find first onset date |
date3 |
Start index to find second onset date |
date4 |
End index to find second onset date |
A vector of indexes that correspond to the four 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.