Skip to content

converting a single animal home range (estUD) to spixdf

2 messages · Leila Brook, JLong

#
Leila Brook wrote
I suspect Clement C. may have a better solution, but here is a cheap
workaround that should do the trick.

a <- simm.crw(1:100,id="a")
b <- simm.crw(200:300,id="b")
bb1 <- kernelbb(a,1,0.2)                        #sig1, sig2 value just
picked by me
bb2 <- kernelbb(c(a,b),1,0.2)
str(bb1)
str(bb2)                                                 #Notice the
difference in structure, estUDm is a list of estUD
bb1.estUDm <- list()
bb1.estUDm$a <- bb1                             #basically just build a list
here
class(bb1.estUDm) <- "estUDm"              #set the class attribute
str(bb1.estUDm)
spdf <- estUDm2spixdf(bb1.estUDm)
image(spdf)



Cheers
Jed




-----
Jed Long
SPAR Lab, Dept. of Geography
University of Victoria, Canada
--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/converting-a-single-animal-home-range-estUD-to-spixdf-tp7581631p7581641.html
Sent from the R-sig-geo mailing list archive at Nabble.com.