Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tag

get a persistent attribute for an object


Description

get a persistent attribute for an object

Basic S3 method

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.

Basic S3 method

Usage

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

Rewrite of gWidgets API for Simplified GUI Construction

v1.0-8
GPL (>= 3)
Authors
John Verzani
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.