[R] Adapting R code for different traps
bjmjarrett
bjmjarrett at gmail.com
Thu Jun 9 15:22:56 CEST 2011
The below works for one trap. Surely there is a quick way to scale it to all
of the traps?
> temp.ACAP1<-outer(release.days[Trap=="ACAP1"],collection.days.2[Trap=="ACAP1"],'-')
> temp.ACAP1<-ifelse(temp.ACAP1>=0,NA,temp.ACAP1)
> diff.ACAP1<-apply(temp.ACAP1,2,max,na.rm=TRUE)
Thanks
Ben
--
View this message in context: http://r.789695.n4.nabble.com/Adapting-R-code-for-different-traps-tp3585215p3585531.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list