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
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
2 matches
Mail list logo