wstringapply             package:ecolitk             R Documentation

_A_p_p_l_y _a _f_u_n_c_t_i_o_n _o_n _a _w_i_n_d_o_w _s_l_i_d_i_n_g _o_n _a _s_t_r_i_n_g

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

     Apply a function on a window sliding on a string.

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

     wstringapply(x, SIZE, SLIDE, FUN, ...)

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

       x: The string 

    SIZE: The size of the window (number of characters). 

   SLIDE: offset to move at each slide

     FUN: The function to be applied 

     ...: optional parameter for the function 'FUN' 

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

     Apply the function 'FUN' to substrings of 'x' of length 'SIZE'.

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

     A list of size 'nchar(x) - SIZE'.

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

     L, Gautier

