words                 package:seqinr                 R Documentation

_T_o _g_e_t _a_l_l _w_o_r_d_s _f_r_o_m _a_n _a_l_p_h_a_b_e_t.

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

     Generates a vectors of all the words from a given alphabet, with
     right positions varying faster, for instance if the 'alphabet' is
     '(c("0","1")' and the 'length' is 2 you will obtain 'c("00", "01",
     "10", "11")'

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

     words(length = 3, alphabet = s2c("acgt"))

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

  length: the number of characters in the words 

alphabet: a vector of characters 

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

     A vector of string whith 'length' characters.

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

     J.R. Lobry

_R_e_f_e_r_e_n_c_e_s:

      'citation("seqinr")'

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

     'kronecker', 'outer'

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

     ## Get all codons
     words()
     ## Get all codons with a c g u for bases
     words(alphabet = c("a", "c", "g", "u"))
     ## Get all tetranucleotides
     words(length = 4)
     ## Get all dipeptides
     words(length = 2, alphabet = s2c("ACDEFGHIKLMNPQRSTVWY"))

