Re: [R] manipulate missing dates in a graphics a vector

2010-02-10 Thread Nilza BARROS
Thank you !! That's exactly what I need. Nilza Barros On Tue, Feb 9, 2010 at 10:50 PM, Dennis Murphy wrote: > Hi: > > # Create a sequence of consecutive dates and assign to a data frame > > dates <- data.frame(day = seq(as.Date('2009-12-01'), by = 'days', length = > 10)) > > # Let's call your da

Re: [R] manipulate missing dates in a graphics a vector

2010-02-09 Thread Peter Alspach
mailto:r-help-boun...@r-project.org] On Behalf Of Nilza BARROS > Sent: Wednesday, 10 February 2010 1:30 p.m. > To: r-help@r-project.org > Subject: [R] manipulate missing dates in a graphics a vector > > Dear all, > > I am trying to identify the days absent in a vector so as t

Re: [R] manipulate missing dates in a graphics a vector

2010-02-09 Thread Dennis Murphy
Hi: # Create a sequence of consecutive dates and assign to a data frame dates <- data.frame(day = seq(as.Date('2009-12-01'), by = 'days', length = 10)) # Let's call your data frame (not vector) 'df'; to make sure that things are # compatible, names(df) <- c('day', 'y') df$day <- as.Date(df$day)

[R] manipulate missing dates in a graphics a vector

2010-02-09 Thread Nilza BARROS
Dear all, I am trying to identify the days absent in a vector so as to be able to display missing data in the graphics in .It should be done automatically since the graphics will be generated for different periods of the year. I have been trying to do a function below but it did not work. I re