Re: [R] date & time manipulation- R 2.15.1 windows 7

2013-03-18 Thread yash kajaria
) > date2<-"2013-01-26" > wday(ymd(date2),label=TRUE) > # 1 parsed with %Y-%m-%d > #[1] Sat > > > week(ymd(date2)) > # 1 parsed with %Y-%m-%d > #[1] 4 > A.K. > > - Original Message - > From: yash kajaria > To: r-help@r-project.org >

[R] date & time manipulation- R 2.15.1 windows 7

2013-03-14 Thread yash kajaria
Hi, I wanted to learn how to solve a date and time manipulation where i can do the following two 1. difference of two dates eg (differnce between 5th jan 2013 and 1st jan 2013) 2.Suppose i have week number of the year, i want to know if i can find out the day it refers to eg( say week