Learn R Programming

harvestr (version 0.7.1)

getAttr: Retrieve an attribute or a default if not present.

Description

Behaves similar to getOption, but is a simple wrapper for attr.

Usage

getAttr(object, name, default = NULL)

Arguments

object
An R Object.
name
Name of the Attribute
default
The value if the attribute is not set or NULL