x <- make_safeframe(cars,
mph = "speed",
distance = "dist"
)
## print result - just first few entries
head(x)
## check tags
tags(x)
## tags can also be passed as a list with the splice operator (!!!)
my_tags <- list(
mph = "speed",
distance = "dist"
)
new_x <- make_safeframe(cars, !!!my_tags)
## The output is strictly equivalent to the previous one
identical(x, new_x)
Run the code above in your browser using DataLab