capthist.parts             package:secr             R Documentation

_D_i_s_s_e_c_t _S_p_a_t_i_a_l _C_a_p_t_u_r_e _H_i_s_t_o_r_y _O_b_j_e_c_t

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

     Extract parts of an object of class 'capthist'.

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

     animalID(object, names = TRUE)
     occasion(object)
     trap(object, names = TRUE)
     xy(object)
     signal(object)
     xy(object) <- value
     signal(object) <- value

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

  object: a 'capthist' object 

   names: if FALSE the values returned are numeric indices rather than
          names 

   value: replacement value (see Details) 

_D_e_t_a_i_l_s:

     These functions extract data on detections, ignoring occasions
     when an animal was not detected. 

     'trap' returns polygon or transect numbers if 'traps(object)' has
     detector type 'polygon' or 'transect'.

     Replacement values must precisely match 'object' in number of
     detections in their order. 'xy<-' expects a dataframe of x and y
     coordinates for points of detection within a 'polygon' or
     'transect' detector.

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

     For 'animalID' and 'trap' a vector of numeric or character values,
     one per detection.

     For 'occasion', a vector of numeric values, one per detection.

     For 'xy', a dataframe with one row per detection and columns 'x'
     and 'y'.

     For 'signal', a numeric vector with one element per detection.

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

     Murray Efford murray.efford@otago.ac.nz

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

     'capthist', 'polyID'

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

     data(captdata)
     animalID(captdata)

     temp <- sim.capthist(popn=list(D=1), make.grid(detector='count'))
     cbind(ID=as.numeric(animalID(temp)), occ=occasion(temp), trap=trap(temp))
      

