Learn R Programming

safeframe (version 1.0.0)

tags: 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)

Value

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

Arguments

x

a safeframe object

show_null

DEPRECATED

Details

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

Examples

Run this code

## 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)

Run the code above in your browser using DataLab