clean_tags {tagr}R Documentation

Remove the 'tags' attribute from an object

Description

This function removes the 'tags' attribute from an object, effectively removing all tags attached to the object. If the object does not have a 'tags' attribute, the function simply returns without modifying the object.

Usage

clean_tags(obj, envir = parent.frame())

Arguments

obj

The object to remove tags from

envir

The environment in which to look for the object

Value

No return value.

Examples

# create an object and add some tags
my_vec <- c(1, 2, 3)
add_tags(my_vec, "important", "numeric")

# remove the tags from the object
clean_tags(my_vec)


[Package tagr version 1.0.1 Index]