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

View source: R/setAttribute.R

setAttributeR Documentation

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

Description

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

Usage

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

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

BBmisc documentation built on Sept. 29, 2022, 5:12 p.m.

Related to setAttribute in BBmisc...