has_tag | R Documentation |
A selector function to use in tidyverse functions
has_tag(tags)
tags |
A character vector of tags you want to operate on |
A numeric vector containing the position of the columns with the requested tags
## create safeframe
x <- make_safeframe(cars,
mph = "speed",
distance = "dist"
)
head(x)
if (require(dplyr) && require(magrittr)) {
x %>%
select(has_tag(c("mph", "distance"))) %>%
head()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.