[R-sig-Geo] [AniMov] Brownian Bridge Movement model error

Clement Calenge clement.calenge at oncfs.gouv.fr
Wed Sep 19 09:41:45 CEST 2012


Dear Leila,

This is indeed a bug. I have corrected it and I will upload the 
correction to CRAN asap. It will be available in a few days. Meanwhile, 
sourcing the attached file (i.e. typing source("kernelbb.R")) will allow 
to use the function in this context.
Best,

Clément


On 09/19/2012 08:38 AM, Leila Brook wrote:
>
> I'm sorry for cross postings, as I'm not sure where exactly to ask 
> this question:
>
> I am trying to estimate a Brownian Bridge kernel home range using 
> adehabitatHR. I created
>
> I created a traj file as below:
>
> bobtraj<-as.ltraj(xy=bob_locs_ss[c("x","y")], id=bob_locs_ss$id, 
> date=bob_locs_ss$newdate, burst=bob_locs_ss$burst2)
>
> Then tried to create a kernelBB as follows, with a reference grid 
> around the animal's home range:
>
> bob_bbss<- kernelbb(bobtraj, sig1=4.0811, sig2=50, grid = refgrid, 
> byburst = TRUE, extent = 0.2)
>
> I then got this error:
>
> Error in as.vector(gr) : no method for coercing this S4 class to a vector
>
> I didn't get the error and the function worked when I ran kernelBB() 
> without byburst=TRUE. However, I would like to keep this specification 
> in the model, as my data were collected at high-frequency with two 
> days on and two days off, and without the burst=TRUE, the kernelBB95 
> looks quite oversmoothed.
>
> Can anyone provide any advice on how to fix this error?
>
> Thanks for your help,
>
> Leila Brook
>


-- 
Clément CALENGE
Cellule d'appui à l'analyse de données
Direction des Etudes et de la Recherche
Office national de la chasse et de la faune sauvage
Saint Benoist - 78610 Auffargis
tel. (33) 01.30.46.54.14

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: kernelbb.r
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20120919/fb437b1c/attachment.pl>


More information about the R-sig-Geo mailing list