Hi there, why the following codes do not run????> weekdays(as.Date('2010-11-30')) == "Monday"[1] FALSE> > weekdays(as.Date('2010-11-29')) == "Monday"[1] FALSEI appreciate, Bill [[alternative HTML version deleted]]
Bill Yang wrote:> > > why the following codes do not run???? >> weekdays(as.Date('2010-11-30')) == "Monday"[1] FALSE> > >> weekdays(as.Date('2010-11-29')) == "Monday"[1] FALSE > >Because only in the old Mayan calendar 2010-11-30 is a monday. It is a "Dienstag" on my computer, so as an additional Bonus you should consider language settings. Divide and conquer is the method to go weekdays(as.Date('2010-11-30')) [1] "Zyschtig" (special Swiss language setting) should have helped. Dieter -- View this message in context: http://r.789695.n4.nabble.com/please-help-me-out-tp3066730p3066778.html Sent from the R help mailing list archive at Nabble.com.