vars_of_type | R Documentation |
type
argument will lead to a function - Usually is.numeric
or is.character
Find variables within a dataset
This function finds variables of a specific type within a dataset
Adapted (i.e. stolen) from
https://mastering-shiny.org/scaling-modules.html#case-study-selecting-a-numeric-variable
The type
argument will lead to a function - Usually is.numeric
or is.character
vars_of_type(data, type = c("numeric", "character", "factor"))
data |
A dataframe |
type |
The type of the variable. One of c("numeric", "character", "factor") |
A character vector of variable names
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.