ls.str                 package:utils                 R Documentation

_L_i_s_t _O_b_j_e_c_t_s _a_n_d _t_h_e_i_r _S_t_r_u_c_t_u_r_e

_D_e_s_c_r_i_p_t_i_o_n:

     'ls.str' and 'lsf.str' are "variations" of 'ls' applying 'str()'
     to each matched name, see section 'Value'.

_U_s_a_g_e:

     ls.str(pos = 1, pattern, ...,  envir = as.environment(pos),
            mode = "any")

     lsf.str(pos = 1, ..., envir = as.environment(pos))

     ## S3 method for class 'ls_str':
     print(x, max.level = 1, give.attr = FALSE, ...)

_A_r_g_u_m_e_n_t_s:

     pos: integer indicating 'search' path position.

 pattern: a regular expression passed to 'ls'. Only names matching
          'pattern' are considered.

max.level: maximal level of nesting which is applied for displaying
          nested structures, e.g., a list containing sub lists. Default
          0: Display all nesting levels.

give.attr: logical; if 'TRUE' (default), show attributes as sub
          structures.

   envir: environment to use, see 'ls'.

    mode: character specifying the 'mode' of objects to consider. 
          Passed to 'exists' and 'get'.

       x: an object of class '"ls_str"'.

     ...: further arguments to pass.  and 'lsf.str' passes them to
          'ls.str' which passes them on to 'ls'. The (non-exported)
          print method 'print.ls_str' passes them to 'str'.

_V_a_l_u_e:

     'ls.str' and 'lsf.str' return an object of class '"ls_str"',
     basically the character vector of matching names (functions only
     for 'lsf.str'), similarly to 'ls', with a 'print()' method that
     calls 'str()' on each object.

_A_u_t_h_o_r(_s):

     Martin Maechler

_S_e_e _A_l_s_o:

     'str', 'summary', 'args'.

_E_x_a_m_p_l_e_s:

     lsf.str()#- how do the functions look like which I am using?
     ls.str(mode = "list") #- what are the structured objects I have defined?

     ## create a few objects
     example(glm, echo = FALSE)
     ll <- as.list(LETTERS)
     print(ls.str(), max.level = 0)# don't show details

     ## which base functions have "file" in their name ?
     lsf.str(pos = length(search()), pattern = "file")

