Re: [R] changing the day of the week in dates format

2011-05-15 Thread jim holtman
[select] <- mydaysx[select] + 365.25*24*60*60 > > Regards,Dave > > > > From: Adrian Duffner > > Cc: "r-help@r-project.org" > Sent: Sunday, 15 May 2011, 14:21 > Subject: Re: [R] changing the day of the week in dates format > > H

Re: [R] changing the day of the week in dates format

2011-05-15 Thread Dave Evens
quot;r-help@r-project.org" Sent: Sunday, 15 May 2011, 14:21 Subject: Re: [R] changing the day of the week in dates format Hi Dave, your problem is that you are working with a S3 class, what is mainly a list with naming convention. Hence it is possible to change just one entry of the list,

Re: [R] changing the day of the week in dates format

2011-05-15 Thread Adrian Duffner
drian Duffner > *To:* Dave Evens > *Cc:* "r-help@r-project.org" > *Sent:* Sunday, 15 May 2011, 14:21 > *Subject:* Re: [R] changing the day of the week in dates format > > Hi Dave, > > your problem is that you are working with a S3 class, what is mainly a > list with

Re: [R] changing the day of the week in dates format

2011-05-15 Thread Adrian Duffner
Hi Dave, your problem is that you are working with a S3 class, what is mainly a list with naming convention. Hence it is possible to change just one entry of the list, but it is nearly never recommendable. So a slight change to your code should provide you the required output: > mydaysx[selec

[R] changing the day of the week in dates format

2011-05-15 Thread Dave Evens
Dear all, I have a question related to the POSIXlt function in R. I have a set of dates and times, for exmaple: startx <- as.POSIXct("2011-01-01 00:00:00") finx <- as.POSIXct("2011-12-31 00:00:00") daysx<- seq(startx, finx, by="24 hours") I want to change the dates of all the days falling on