unit.length               package:grid               R Documentation

_L_e_n_g_t_h _o_f _a _U_n_i_t _O_b_j_e_c_t

_D_e_s_c_r_i_p_t_i_o_n:

     The length of a unit object is defined as the number of unit
     values in the unit object.

     This function has been deprecated in favour of a unit method for
     the generic 'length' function.

_U_s_a_g_e:

     unit.length(unit)

_A_r_g_u_m_e_n_t_s:

    unit: A unit object.

_V_a_l_u_e:

     An integer value.

_A_u_t_h_o_r(_s):

     Paul Murrell

_S_e_e _A_l_s_o:

     'unit'

_E_x_a_m_p_l_e_s:

     length(unit(1:3, "npc"))
     length(unit(1:3, "npc") + unit(1, "inches"))
     length(max(unit(1:3, "npc") + unit(1, "inches")))
     length(max(unit(1:3, "npc") + unit(1, "strwidth", "a"))*4)
     length(unit(1:3, "npc") + unit(1, "strwidth", "a")*4)

