

paste {base}                                 R Documentation

_C_o_n_c_a_t_e_n_a_t_e _S_t_r_i_n_g_s

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

     Concatenate character vectors.

_U_s_a_g_e_:

     paste(..., sep = " ", collapse = NULL)

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

     ...: one or more R objects, to be coerced to character
          vectors.

     sep: a character string to separate the terms.

collapse: an optional character string to separate the
          results.

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

     `paste' converts its arguments to character strings,
     and concatenates them (separating them by the string
     given by `sep').  If the arguments are vectors, they
     are concatenated term-by-term to give a character vec-
     tor result.

     If a value is specified for `collapse', the values in
     the result are then concatenated into a single string,
     with the elements being separated by the value of `col-
     lapse'.

_V_a_l_u_e_:

     A character vector of the  concatenated values.

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

     `as.character', `substr', `nchar', `strsplit'.

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

     paste(1:12) # same as as.character(..)
     paste("A", 1:6, sep = "")
     paste("Today is", date())

