Learn R Programming

cgwtools (version 4.1)

lstype: List all objects of the specified type.

Description

This is a Q&D tool to list all objects in the current environment of a specified type. As discussed in the base R documentation, these types are the vector types "logical", "integer", "double", "complex", "character", "raw" and "list", "NULL", "closure" (function), "special" and "builtin" (basic functions and operators), "environment", "S4" (some S4 objects).

Usage

lstype(type = "closure")

Value

A vector of character strings as is returned by the base function ls .

Arguments

type

Any valid variable type, or "function," which is redirected to "closure."

Author

Carl Witthoft carl@witthoft.com

See Also

ls , lssize, lsclass

Examples

Run this code
lstype('integer') #if you have any such in your environment.

Run the code above in your browser using DataLab