justify              package:mathgraph              R Documentation

_J_u_s_t_i_f_y _E_l_e_m_e_n_t_s _o_f _a _V_e_c_t_o_r

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

     Returns a vector like the input, but each string may have added
     blank spaces at the start and/or end.

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

     justify(x, type = "r")

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

       x: a character vector. 

    type: a string giving the type of justification.
           This may be an abbreviation of one of "right", "left",
          "center". 

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

     a character vector like x, except all elements have the same
     number of characters, and the text is lined up along one edge, or
     centered.

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

     Nick Efthymiou

_R_e_f_e_r_e_n_c_e_s:

     S Poetry, Patrick J. Burns

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

     'format', 'substring',  'paste'

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

     data(freeny)
     as.matrix(justify(dimnames(freeny.x)[[2]], "r"))
     as.matrix(justify(dimnames(freeny.x)[[2]], "l"))
     as.matrix(justify(dimnames(freeny.x)[[2]], "c"))

