percent                 package:sca                 R Documentation

_S_i_m_p_l_e _F_o_r_m_a_t_t_i_n_g _o_f _P_e_r_c_e_n_t_a_g_e_s

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

     Returns strings of the same length as 'p', displaying the '100 *
     p' percentages.

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

     percent(p, d = 0, sep = " ")

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

       p: number(s) in [0,1] - to be ``displayed'' as percentage(s).

       d: number of digits after decimal point.

     sep: separator to use before the final '"%"'.

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

     character vector of the same length as 'p'.

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

     Martin Maechler

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

     percent(0.25)
     noquote(percent((1:10)/10))
     (pc <- percent((1:10)/30, 1, sep=""))
     noquote(pc)

