covariates               package:secr               R Documentation

_C_o_v_a_r_i_a_t_e_s _A_t_t_r_i_b_u_t_e

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

     Extract or replace covariates

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

     covariates(object, ...)
     covariates(object) <- value

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

  object: an object of class 'traps', 'popn', 'capthist', or 'mask' 

   value: a dataframe of covariates 

     ...: other arguments (not used) 

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

     For replacement, the number of rows of 'value' must match exactly
     the number of rows in 'object'.

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

     covariates(object) returns the dataframe of covariates associated
     with 'object'. 'covariates(object)' may be NULL.

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

     Murray Efford murray.efford@otago.ac.nz

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

     temptrap <- make.grid(nx = 6, ny = 8)
     covariates (temptrap) <- data.frame(halfnhalf = 
         factor(rep(c('left','right'),c(24,24))) )
     summary(covariates(temptrap))

