Description Usage Arguments Examples
Calling R functions like ifelse()
may accidentally convert a Date vector
to a numeric vector, due to losing the class attributes. This helper function
enables you to restore the numeric vector back to R Date.
1 | r_date(x)
|
x |
the numeric values behind the Date value, which is the number of days since 1970-01-01, with negative values for earlier dates. |
1 | r_date(18262)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.