gdltraj              package:adehabitat              R Documentation

_W_o_r_k_i_n_g _w_i_t_h _T_r_a_j_e_c_t_o_r_i_e_s: _S_p_e_c_i_f_y _a _T_i_m_e _P_e_r_i_o_d

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

     Gets the parts of the trajectories stored in an object of class
     'ltraj', corresponding to a specified time period.

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

     gdltraj(x, min, max, type = c("POSIXct", "sec", "min", "hour", "mday",
             "mon", "year", "wday", "yday")) 

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

       x: an object of class 'ltraj' 

     min: numeric.  The beginning of the period to consider

     max: numeric.  The end of the period to consider

    type: character.  The time units of 'min' and 'max'

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

     The limits of the period to consider may correspond to any of the
     components of the list of class 'POSIXlt' (hour, day, month, etc.;
     see 'help(POSIXlt)'), or to dates stored in objects of class
     'POSIXct' (see examples).

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

     an object of class 'ltraj'.

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

     Clment Calenge calenge@biomserv.univ-lyon1.fr

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

     'as.ltraj' for further information about objects of class 'ltraj',
     'POSIXlt' for further information about objects of class 'POSIXlt'

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

     data(puechcirc)
     plot(puechcirc, perani = FALSE)

     ## gets all the relocations collected
     ## between midnight and 3H AM 
     toto <- gdltraj(puechcirc, min = 0, max = 3, type="hour")
     plot(toto, perani = FALSE)

     ## gets all relocations collected between the 15th
     ## and the 25th august 1993
     lim <- as.POSIXct(strptime(c("15/08/1993", "25/08/1993"),
                       "%d/%m/%Y"))
     tutu <- gdltraj(puechcirc, min = lim[1],
                     max = lim[2], type="POSIXct")
     plot(tutu, perani = FALSE)

