vcat                 package:sfsmisc                 R Documentation

_P_a_s_t_e _U_t_i_l_i_t_i_e_s - _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:

     Con*cat*enate vector elements or anything using 'paste(*, collapse
     = .)'. These are simple short abbreviations I have been using in
     my own codes in many places.

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

     vcat(vec, sep = " ")
     ccat(...)

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

vec, ...: any vector and other arguments to be pasted to together.

     sep: the separator to use, see the _Details_ section.

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

     The functions are really just defined as
      vcat :=  'function(vec, sep = " ") paste(vec, collapse = sep)'

     ccat :=  'function(...)            paste(..., collapse = "", sep =
     "")'

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

     a character string (of length 1) with the concatenated arguments.

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

     Martin Maechler, early 1990's.

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

     'paste', 'as.character', 'format'. 'cat()' is really for printing.

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

     ch <- "is"
     ccat("This ", ch, " it: ", 100, "%")
     vv <- c(1,pi, 20.4)
     vcat(vv)
     vcat(vv, sep = ", ")

