toString                package:base                R Documentation

_t_o_S_t_r_i_n_g _C_o_n_v_e_r_t_s _i_t_s _A_r_g_u_m_e_n_t _t_o _a _C_h_a_r_a_c_t_e_r _S_t_r_i_n_g

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

     This is a helper function for 'format'. It converts its argument
     to a string. If the argument is a vector then its elements are
     concatenated with a ',' as a separator.  Most methods should honor
     the width argument.  The minimum value for 'width' is six.

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

     toString(x, ...)

     ## Default S3 method:
     toString(x, width, ...)

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

       x: The object to be converted.

   width: The returned value is at most the first 'width' characters.

     ...: Optional arguments for methods.

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

     A character vector of length 1 is returned.

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

     Robert Gentleman

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

     'format'

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

     x <- c("a", "b", "aaaaaaaaaaa")
     toString(x)
     toString(x, width=8)

