ll                   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 _O_b_j_e_c_t_s _o_r _E_l_e_m_e_n_t_s

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

     Display name, class, size, and dimensions of each object in a
     given environment. Alternatively, if the main argument is a
     list-like object, its elements are listed and described.

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

     ll(pos=1, unit=c("KB","MB","bytes"), digits=0, dimensions=FALSE,
        function.dim="", sort.elements=FALSE, ...)

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

     pos: environment position number, environment name, data frame,
          list, model, or any object that 'is.list()'.

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

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

dimensions: whether object dimensions should be returned.

function.dim: value to report as the dimension of function objects.

sort.elements: whether elements should be sorted by name.

     ...: passed to 'ls()'.

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

     A verbose alternative to 'ls()' and 'names()'.

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

     A data frame with named rows and the following columns: 

   Class: object class.

      KB: object size _(see notes)_.

     Dim: object dimensions _(optional)_.

_N_o_t_e:

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

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

     Arni Magnusson arnima@u.washington.edu, with a contribution by Jim
     Rogers james.a.rogers@pfizer.com

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

     'ls' displays names of objects in a given environment.

     'names', 'str', and 'summary' display different information about
     list-like elements.

     'env' is related to 'll'.

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

     ll()
     ll(all=TRUE)
     ll("package:base")
     ll("package:base")[ll("package:base")$Class!="function",]

     data(infert)
     ll(infert)
     model <- glm(case~spontaneous+induced, family=binomial, data=infert)
     ll(model, dim=TRUE)
     ll(model, sort=TRUE)
     ll(model$family)

