Description Usage Arguments Value Examples
View source: R/incoming_data.R
The rnoaa package returns dates for weather station records in
"yyyy-mm-dd" format. All date and spectral calculations work on multi-year
Julian dates. This is a small helper function to convert from "yyyy-mm-dd" to
julian day. Because it uses mdy.date()
from the date package, it
returns the number of days since January 1, 1960. Inputs are coerced to
character if necessary.
1 | yyyymmdd_to_numeric(yyyymmdd_dates = stop("Char dates yyyy-mm-dd rqrd."))
|
yyyymmdd_dates |
a vector of dates in "yyyy-mm-dd" format. |
a numeric vector of the number of days since 1/1/1960, dates before this are negative.
1 | yyyymmdd_to_numeric(c("1954-3-5", "2012-9-28"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.