Re: [R] How to create sequence in month

2010-07-12 Thread Gabor Grothendieck
On Mon, Jul 12, 2010 at 2:25 PM, Bogaso Christofer wrote: > Hi all, can anyone please guide me how to create a sequence of months? Here > I have tried following however couldn't get success > >> library(zoo) > >> seq(as.yearmon("2010-01-01"), as.yearmon("2010-03-01"), by="1 month") > There curren

Re: [R] How to create sequence in month

2010-07-12 Thread Stefan Grosse
Am 12.07.2010 20:25, schrieb Bogaso Christofer: >> library(zoo) > >> seq(as.yearmon("2010-01-01"), as.yearmon("2010-03-01"), by="1 month") > seq(as.Date("2010-01-01"), as.Date("2010-03-01"), by="1 month") hth Stefan __ R-help@r-project.org mailing

Re: [R] How to create sequence in month

2010-07-12 Thread MacQueen, Don
As in this example: > seq(as.Date("2000/1/1"), as.Date("2003/1/1"), by="mon") On 7/12/10 11:25 AM, "Bogaso Christofer" wrote: > Hi all, can anyone please guide me how to create a sequence of months? Here > I have tried following however couldn't get success > > > >> library(zoo) > >> seq(

[R] How to create sequence in month

2010-07-12 Thread Bogaso Christofer
Hi all, can anyone please guide me how to create a sequence of months? Here I have tried following however couldn't get success > library(zoo) > seq(as.yearmon("2010-01-01"), as.yearmon("2010-03-01"), by="1 month") Error in del/by : non-numeric argument to binary operator What is the cor