Re: [R] Subset of Data Frame using the date

2011-02-01 Thread Henrique Dallazuanna
Try this: DF <- data.frame( "Date" = c("2009-09-01","2009-09-02","2009-09-03","2009-09-04", "2009-09-05"), "Data" = c( 10:14 ) ) subset(DF, as.Date(Date) >= '2009-09-02' & as.Date(Date) <= '2009-09-04') On Tue, Feb 1, 2011 at 11:09 AM, Usuario R wrote: > Hello, > > I have a data frame with one

[R] Subset of Data Frame using the date

2011-02-01 Thread Usuario R
Hello, I have a data frame with one column set as the date with function as.Date. In example: data.frame( "Date" = c("2009-09-01","2009-09-02","2009-09-03","2009-09-04", "2009-09-05"), "Data" = c( 10:14 ) ) Date Data 2009-09-01 10 2009-09-02 11 2009-09-03 12 2009-09-04 13 Is there