[R] please help me out

2010-11-30 Thread Bill Yang
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] FALSE I appreciate, Bill [[alternative HTML version deleted]] _

[R] thank you so much

2010-11-30 Thread Bill Yang
Hi thereI appreciate for your reply.I am running into another problem now, the following is my date (example)2000-1-4 -0.0383447182000-1-5 0.001952000-1-6 0.0009557022000-1-7 0.0270903842000-1-10 0.0111899662000-1-11-0.0130625692000-1-12 -0.004386331

Re: [R] Welcome to the "R-help" mailing list

2010-11-30 Thread Bill Yang
Hi there, I am having problem of matching string. what i want is when i type a date such as 2010-11-30, the function will return the day (monday, tuesday, wednesday, thursday, friday or staturday). then i want another function will return true if the return of the day is monday, return false if