sahrlocs2kselect {adehabitat} | R Documentation |
sahrlocs2kselect
converts an object of class sahrlocs into a
list that contains the arguments needed for a kselect analysis (see
help(kselect)
).
sahrlocs2kselect(sahr)
sahr |
an object of class sahrlocs |
Returns a list with the following components:
tab |
a data frame giving the habitat composition of the home range of animals |
factor |
a factor giving for each row of tab the name of the
corresponding animal |
weight |
a numeric vector giving for each row of tab the number
of relocations numbered in this cell of the raster map |
Clement Calenge clement.calenge@oncfs.gouv.fr
Calenge, C., Dufour, A.B. and Maillard, D. (submitted). K-select analysis, a new method to analyse habitat selection in radio-tracking studies.
as.sahrlocs
for additional information on the
objects of class sahrlocs
, kselect
for a K-select
analysis, and kasc2df
for additional information on
the index component of the output.
data(puechabon) sahr <- puechabon$sahr s <- sahrlocs2kselect(sahr) # 1. PCA of the dataset pc <- dudi.mix(s$tab, scannf = FALSE) # 2. k-select analysis kn <- kselect(pc, s$factor, s$weight, scannf = FALSE) scatter(kn)