Learn R Programming

PythonInR (version 0.1-12)

pyDir: Convenience function to call the Python function dir

Description

A convenience function to call the Python function dir.

Usage

pyDir(objName = NULL)

Arguments

objName

an optional string specifying the name of the Python object.

Value

Returns the list of names in the global scope, if no object name is provided, otherwise a list of valid attributes for the specified object.

Details

The Python function dir is similar to the R function ls.

Examples

Run this code
# NOT RUN {
pyDir()
pyDir("sys")
# }

Run the code above in your browser using DataLab