mdy | R Documentation |
Returns data frames containing various periods from a time vector as integers.
mdy(x)
hms(x)
wdydy(x)
x |
the |
mdy
returns a data frame with
three columns:
month
(1 - 12).
day
(1 - 31).
year
(for example, 1998).
hms
returns a data frame with four columns:
hour
(0 - 23).
minute
(0 - 59).
second
(0 - 59).
ms
(0 - 999).
wdydy
returns a data frame with three columns:
weekday
(0 - 6, with 0 meaning Sunday and 6 meaning Saturday).
yearday
(0 - 366).
year
(for example, 1998).
returns a data frame containing the periods as integers.
hours
, days
.
x <- timeDate(c("1/1/1998 3:05:23.4", "5/10/2005 2:15:11.234 PM"))
mdy(x)
hms(x)
wdydy(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.