Learn R Programming

cgwtools (version 3.2)

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")

Arguments

type

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

Value

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

See Also

ls , lssize, lsclass

Examples

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

Run the code above in your browser using DataLab