tags: Get the list of tags in a safeframe

View source: R/tags.R

tagsR Documentation

Get the list of tags in a safeframe

Description

This function returns the list of tags identifying specific variable types in a safeframe object.

Usage

tags(x, show_null = FALSE)

Arguments

x

a safeframe object

show_null

DEPRECATED

Details

tags are stored as the label attribute of the column variable.

Value

The function returns a named list where names indicate generic types of data, and values indicate which column they correspond to.

Examples


## make a safeframe
x <- make_safeframe(cars, mph = "speed")

## check non-null tags
tags(x)

## get a list of all tags, including NULL ones
tags(x, TRUE)

safeframe documentation built on June 28, 2025, 1:08 a.m.