Dear R experts,
I'm using the adehabitatHR package in order to perform a kernel analysis and
estimate the home range of my input data (GPS relocations of 42
individuals).
I've done the analysis for one of the individuals and it worked perfectly
(see code below).
But now I'm trying to use a list and call the function lapply to do the same
thing through all the 42 individuals (also see code below), but I'm only
obtaining this error:
Error in seq.default(yli[1], yli[2], by = diff(xg[1:2])) :
invalid (to - from)/by in seq(.)
I have browsed the net in order to find out what does it mean, but I haven't
found a similar error, so I'm stuck with it...
Any thoughts on what I could be doing wrong will be very appreciated!
See below the code:
FOR ONE ANIMAL NAMED "Gael". IT WORKED PERFECTLY!
# Read a shapefile and convert it into a SpatialPointsDataFrame with its