Description Usage Arguments Details Value See Also Examples
Convert numeric dates for month, day, and year to Date object, and vice versa.
1 2 3 4 5 |
month |
integer, month (1-12). |
day |
integer, day of the month (1-31, depending on the month). |
year |
integer, either 2- or 4-digit year. If two-digit number, will add 1900 onto it, depending on range. |
yearcut |
cutoff for method to know if to convert to 4-digit year. |
date |
A date value. |
x |
An object. |
Test if an object is a date.
More work may need to be done with yearcut and 2-digit years. Best to give a full 4-digit year.
mdy.Date
returns a Date object, and Date.mdy returns a list with integer values for month, day, and year.
is.Date
returns a single logical value.
1 2 3 4 5 6 |
[1] "2013-09-02"
$month
[1] 9
$day
[1] 2
$year
[1] 2013
[1] TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.