Learn R Programming

reticulate (version 1.37.0)

py_get_attr: Get an attribute of a Python object

Description

Get an attribute of a Python object

Usage

py_get_attr(x, name, silent = FALSE)

Value

Attribute of Python object

Arguments

x

Python object

name

Attribute name

silent

TRUE to return NULL if the attribute doesn't exist (default is FALSE which will raise an error)