tags_df: Extract a data.frame of all tagged variables

View source: R/tags_df.R

tags_dfR Documentation

Extract a data.frame of all tagged variables

Description

This function returns a data.frame, where tagged variables (as stored in the safeframe object) are renamed. Note that the output is no longer a safeframe, but a regular data.frame. untagged variables are unaffected.

Usage

tags_df(x)

Arguments

x

a safeframe object

Value

A data.frame of with variables renamed according to their tags

Examples


x <- make_safeframe(cars,
  mph = "speed",
  distance = "dist"
)

## get a data.frame with variables renamed based on tags
tags_df(x)

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