sahrlocs2kselect         package:adehabitat         R Documentation

_P_r_e_p_a_r_a_t_i_o_n _o_f _K-_S_e_l_e_c_t _A_n_a_l_y_s_i_s

_D_e_s_c_r_i_p_t_i_o_n:

     'sahrlocs2kselect' converts an object of class sahrlocs into a
     list that contains the arguments needed for a kselect analysis
     (see 'help(kselect)').

_U_s_a_g_e:

     sahrlocs2kselect(sahr)

_A_r_g_u_m_e_n_t_s:

    sahr: an object of class 'sahrlocs'

_V_a_l_u_e:

     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

_A_u_t_h_o_r(_s):

     Clment Calenge calenge@biomserv.univ-lyon1.fr

_R_e_f_e_r_e_n_c_e_s:

     Calenge, C., Dufour, A.B. and Maillard, D. (_submitted_). K-select
     analysis, a new method to analyse habitat selection in
     radio-tracking studies.

_S_e_e _A_l_s_o:

     '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.

_E_x_a_m_p_l_e_s:

     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)

