setAttribute: A wrapper for 'attr(x, which) = y'.

Description Usage Arguments Value Examples

View source: R/setAttribute.R

Description

A wrapper for attr(x, which) = y.

Usage

1
setAttribute(x, which, value)

Arguments

x

[any]
Your object.

which

[character(1)]
Name of the attribute to set

value

[ANY]
Value for the attribute.

Value

Changed object x.

Examples

1
setAttribute(list(), "foo", 1)

berndbischl/BBmisc documentation built on Nov. 29, 2017, 5:10 a.m.