mdy {splusTimeDate} | R Documentation |
Return Various Periods from a Time Vector
Description
Returns data frames containing various periods from a time vector as integers.
Usage
mdy(x)
hms(x)
wdydy(x)
Arguments
x |
the |
Details
-
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).
-
Value
returns a data frame containing the periods as integers.
See Also
Examples
x <- timeDate(c("1/1/1998 3:05:23.4", "5/10/2005 2:15:11.234 PM"))
mdy(x)
hms(x)
wdydy(x)
[Package splusTimeDate version 2.5.8 Index]