elem                  package:gdata                  R Documentation

_D_i_s_p_l_a_y _I_n_f_o_r_m_a_t_i_o_n _a_b_o_u_t _E_l_e_m_e_n_t_s _i_n _a _G_i_v_e_n _O_b_j_e_c_t

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

     _This function is depreciated.  Please use 'll' instead._

     Display name, class, size, and dimensions of each element in a
     given object.

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

     elem(object=1, unit=c("KB","MB","bytes"), digits=0,
                      dimensions=FALSE)

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

  object: object containing named elements, perhaps a model or data
          frame.

    unit: required unit for displaying element size: "KB", "MB",
          "bytes", or first letter.

  digits: number of decimals to display when rounding element size.

dimensions: whether element dimensions should be returned.

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

     A verbose alternative to 'names()'.

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

     A data frame with named rows and the following columns: 

   Class: element class.

      KB: element size _(see notes)_.

     Dim: element dimensions _(optional)_.

_N_o_t_e:

     The name of the element size column is the same as the unit used.

     Elements of class 'classRepresentation',
     'ClassUnionRepresentation', and 'grob' do not have a defined size,
     so 0 bytes are assumed for those.

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

     Arni Magnusson arnima@u.washington.edu

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

     'names', 'str', and 'summary' display different information about
     object elements.

     'll' and 'env' are related to 'elem'.

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

     ## Not run: 
     data(infert)
     elem(infert)
     model <- glm(case~spontaneous+induced, family=binomial, data=infert)
     elem(model, dim=TRUE)
     elem(model$family)
     ## End(Not run)

