tags {tagr} | R Documentation |
Retrieve tags associated with an object
Description
This function retrieves the tags associated with a specified object.
Usage
tags(obj, envir = parent.frame())
Arguments
obj |
The object to retrieve tags from. |
envir |
The environment in which the object exists. Defaults to the parent environment. |
Value
Returns a sorted vector of tags associated with the object. If the object has no tags, the function prints a message and returns NULL.
Examples
# create a variable
x <- 5
# add tags to the variable
add_tags(x, "important", "numeric")
# retrieve the tags
tags(x)
[Package tagr version 1.0.1 Index]