Description Usage Arguments Value Examples
View source: R/obtain and clean data.R
The NOAA data has columns called DAY, MONTH, YEAR. Part of the requirements for cleaning this data is to create a date column. All of the years are provided, but some of the months and days are NA. We'll replace NA days with 1st and NA months with Jan. Also, note that as.Date does not play nice with negative years, so these have been removed. Vectors days, months and years must be of the same length.
1 |
days |
Day of the year as integer vector |
months |
Month of the year as integer vector |
years |
An integer vector of years |
A vector of the date objects returned from passing date strings to as.Date
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.