Hi,
The ?as.numeric() in 'indx' is not needed.
indx1<-(as.Date(AB$Start)<= as.Date(AB$Date)) & (as.Date(AB$Date) <=
as.Date(AB$End))
identical(indx,indx1)
#[1] TRUE
AB[indx1,-c(5:7)]
A.K.
- Original Message -
From: arun
To: R help
Cc: Matthew Guzzo
Sent: Sunday, September 8, 201
HI Matt,
I changed the dates a little bit to show dates that are outside the range in
dataset B.
A<- read.table(text="
ID Date Depth Temp
1 2002-05-12 10 12
1 2003-05-13 10 12
1 2003-05-14 10 12
1 2004-04-15 10 12
2 matches
Mail list logo