R.oo (version 1.0.3)

ll: Generates a list of informative properties of all members of an environment

Description

Generates a list of informative properties of all members of an environment.

Usage

## S3 method for class 'default}(pattern=".*", ..., private=FALSE, properties=c("data.class", "dimension", "object.size"), sortBy=NULL, envir=parent.frame())':
llundefined

pattern{Regular expression pattern specifying which members to
   return. If ".*", all names are matched.}
  ...{A named vector of format functionName=value, where
   functionName() will be called on each member found. If the
   result matches the value, the member is returned, otherwise
   not.}
  properties{Names of properties to be returned. There must exist
   a function with the same name, because it will be called. This way
   one can extract any type of property by defining new methods.}
  sortBy{Name or index of column (property) to be sorted by.
   If NULL, the objects are listed in the order they are found.}
  private{If TRUE, also private members, i.e. members with
   a name starting with a . (period), will be listed, otherwise not.}
  envir{An environment, a search path index or a name of a package
   to be scanned.}

Returns a data.frame containing information about all the members.

To list all objects in .GlobalEnv:
   > ll()
   		     member data.class dimension object.size
   1                *tmp*     Person         1         428
   2  as.character.Person   function      NULL        1208
   3              country  character         1          44
   4        equals.Person   function      NULL        2324
   5             filename  character         1          84
   6               getAge   function      NULL         372
   7        getAge.Person   function      NULL         612
   8       getName.Person   function      NULL         628
   9      hashCode.Person   function      NULL        1196
   10        last.warning       list         1         192
   11                 obj     Person         1         428
   12              Person      Class      NULL        2292
   13              setAge   function      NULL         372
   14       setAge.Person   function      NULL        2088
   15             setName   function      NULL         372
   16      setName.Person   function      NULL         760
   17   staticCode.Person   function      NULL        2372

   To list all functions in the methods package:
   ll(mode="function", envir="methods")

   To list all numeric and character object in the base package:
   ll(mode=c("numeric", "character"), envir="base")

[object Object]

ll.Object().

utilities

Arguments