strbreak               package:Biobase               R Documentation

_B_r_e_a_k _C_h_a_r_a_c_t_e_r _S_t_r_i_n_g_s _t_o _F_i_t _W_i_d_t_h

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

     Inserts line breaks ('collapse') into input character strings. The
     main intention of this function is to prepare long strings for
     printing, so the output  is not wider than 'width'.

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

       strbreak(x, width=getOption("width"), exdent=2, collapse="\n")

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

       x: a character vector

   width: a positive integer giving the width of the output.

  exdent: a positive integer specifying the indentation of subsequent
          lines after the first line.

collapse: a character.  This is inserted to break lines.

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

     No details.

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

     Wolfgang Huber <URL: http://www.ebi.ac.uk/huber>

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

     'strwrap', 'substring'

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

     longString = paste(rep(LETTERS, 10), collapse="", sep="")
     cat(strbreak(longString))

