Learn R Programming

strvalidator (version 1.5.0)

listObjects: List Objects

Description

Internal helper function to list objects in an environment.

Usage

listObjects(env = parent.frame(), objClass = NULL, debug = FALSE)

Arguments

env
environment in wich to search for objects.
objClass
character string or vector specifying the object class.
debug
logical indicating printing debug information.

Value

  • character vector with the object names.

Details

Internal helper function to retrieve a list of objects from a workspace. Take an environment as argument and optionally an object class. Returns a list of objects of the specified class in the environment.

Examples

Run this code
# List data frames in the workspace.
listObjects(objClass="data.frame")
# List functions in the workspace.
listObjects(objClass="function")

Run the code above in your browser using DataLab