stringDims               package:Hmisc               R Documentation

_S_t_r_i_n_g _D_i_m_e_n_t_i_o_n_s

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

     Finds the height and width of all the string in a character
     vector.

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

     stringDims(string)

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

  string: vector of strings

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

     'stringDims' finds the number of characters in width and number of
     lines in height for each string in the 'string' argument.

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

  height: a vector of the number of lines in each string.

   width: a vector with the number of character columns in the longest
          line.

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

     Charles Dupont

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

     'string.bounding.box', 'nchar'

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

     a <- c("this is a single line string", "This is a\nmulty line string")
     stringDims(a)

