| polyID {secr} | R Documentation |
Extract or replace polygon dentifier from an object of class 'traps'.
polyID(object) polyID(object) <- value
object |
an object with attribute 'polyID' |
value |
a factor of length equal to nrow(object) |
These functions assign and extract the attribute of a 'traps' object that assigns vertices (rows) to particular polygons.
a factor with one level per polygon
Murray Efford murray.efford@otago.ac.nz
## default is a single polygon temp <- make.grid(detector = 'polygon', hollow = T) polyID(temp) plot(temp) ## split in two temp <- make.grid(detector = 'polygon', hollow = T) polyID(temp) <- factor(rep(c(1,2),rep(10,2))) plot(temp)