tag: get a persistent attribute for an object

Description Usage Arguments

View source: R/methods.R

Description

Unlike attr<-, this method (essentially) stores the attribute in a reference to the object, not a copy. As such it can be used within function call (handlers) to assign values outside the scope of the function call.

Usage

1
2
3
4
5
6
7
8
tag(obj, key)

## Default S3 method:
tag(obj, key)

tag(obj, key) <- value

tag(obj, key) <- value

Arguments

obj

object

key

character. Values are stored by key. If missing, all keys are returned.

value

to assign to key


gWidgets2 documentation built on Jan. 11, 2022, 1:07 a.m.