longestConsecutive        package:matchprobes        R Documentation

_O_b_t_a_i_n _t_h_e _l_e_n_g_t_h _o_f _t_h_e _l_o_n_g_e_s_t _s_u_b_s_t_r_i_n_g _c_o_n_t_a_i_n_i_n_g
_o_n_l_y '_l_e_t_t_e_r'

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

     This function accepts a character vector and computes the length
     of the longest substring containing only 'letter' for each element
     of 'x'.

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

     longestConsecutive(seq, letter) 

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

     seq: Character vector.

  letter: Character vector of length 1, containing one single
          character.

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

     The elements of 'x' can be in upper case, lower case or mixed. NAs
     are handled.

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

     An integer vector of the same length as 'x'.

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

     W. Huber

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

     'complementSeq','basecontent','reverseSeq'

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

      v = c("AAACTGTGFG", "GGGAATT", "CCAAAAAAAAAATT")
      longestConsecutive(v, "A")

