Displaying 2 results from an estimated 2 matches for "parsedd".
Did you mean:
parsed
2004 Mar 01
6
Find out the day of week for a chron object?
I know that this is correct:
library(chron)
x = dates("01-03-04", format="d-m-y", out.format="day mon year")
print(x)
It gives me the string "01 Mar 2004" which is correct.
I also know that I can say:
print(day.of.week(3,1,2004))
in which case he says 1, for today is monday.
My question is: How do I combine these two!? :-) I have a
2006 Mar 19
2
Obtaining the day of any given date
R-Help
Please can you tell me if there is a function within R
that will return the day of any given date?
Using 19 March 2006 as an example:
given 20060319 (or any other date format) will return
the day Sunday.
Many thanks
Fiona.