Description Usage Arguments Value Examples
View source: R/identify_measures.R
Enter a data.frame or vector, and this function will return a vector of measures A measure is defined as a column name (or item in a vector) that contains a key word. default is c("measure", "rate"). The function uses stringr to detect these regular expressions.
1 | identify_measures(data, key = c("measure", "rate"))
|
data |
data.frame or vector |
key |
vector |
vector
1 2 3 4 5 6 | load("../example_data/yummy.Rda")
names(dat_1)
identify_measures(dat_1)
names_to_check <- c("condition", "odds_ratio", "blood_type", "percent_ratio" )
identify_measures(names_to_check, key = "ratio")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.