Skip to content
Prev 22526 / 29559 Next

How to count unique TRUE's

Forrest, it seems to me that you can simplify and do

output$AC[i] <- length(gIntersection(tmp, ac))

instead of

tmp2 <- as.vector(gIntersects(tmp, ac, byid=TRUE))
output$AC[i] <- length(tmp[tmp2 == TRUE])

Robert
On Tue, Mar 31, 2015 at 11:56 AM, Forrest Stevens <forrest at ufl.edu> wrote: