cutw                 package:seewave                 R Documentation

_C_u_t _a _s_e_c_t_i_o_n _o_f _a _t_i_m_e _w_a_v_e

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

     This function selects and cuts a section of data describing a time
     wave. Original and cut sections can be plotted as oscillograms for
     comparison.

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

     cutw(wave, f, from, to, plot = FALSE, marks = TRUE, ...)

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

    wave: data describing a time wave.

       f: sampling frequency of 'wave'.

    from: start mark (in s).

      to: end mark (in s).

    plot: logical, if 'TRUE' returns an oscillographic plot of original
          and cut sections (by default 'FALSE').

   marks: logical, if 'TRUE' shows the start and end mark on the plot
          (by default 'TRUE').

     ...: other 'oscillo' graphical parameters.

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

     If 'plot' is 'TRUE' returns a two-frame plot with both  original
     and cut sections.

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

     If 'plot' is 'FALSE', 'cutw' returns a one-column matrix
     describing the cut wave with the same sampling frequency as
     original data.

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

     Jrme Sueur jerome.sueur@ibaic.u-psud.fr

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

     'oscillo', 'pastew', 'timer'.

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

     # a 0.4 s section in a bird song
     data(tico)
     a<-cutw(tico,f=22050,from=0.5,to=0.9)
     oscillo(a,8000,k=1,j=1)
     # a direct way to see what has been cut
     cutw(tico,f=22050,from=0.5,to=0.9,plot=TRUE)

