Dear Gonçalo,
If DF is your data set, something like this should do the job:
which(DF==yourdate,arr.ind=TRUE)
> # Example
> Dates<-c('01/18/2009','01/19/2009','01/20/2009','01/21/2009')
> DF<-data.frame(
+Site=sample(4),
+ "Site#"=sample(4),
+ Season=sample(4),
+Da
Hi,
I have a data.frame SAMPLES with columns:
Site Site# Season Day1 Day2 Day3
Day1, Day2, Day3 are class "Date", the other columns are numeric or
factor.
I have a date "mydate" that may or may not be listed in my data.frame
and I need to find that out.
If "mydate" is there,
2 matches
Mail list logo