Skip to contents

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

Value

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

Details

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

Examples


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

## check non-null tags
tags(x)
#> $mph
#> [1] "speed"
#> 

## get a list of all tags, including NULL ones
tags(x, TRUE)
#> Warning: The 'show_null' argument is deprecated and is no longer functional.
#> $mph
#> [1] "speed"
#>