Skip to contents

Find possible variable names from a data.frame given a set of search names

Usage

find_var_names(.data, vars, all = FALSE)

Arguments

.data

A data.frame to search variable names from

vars

A vector of terms to search for

all

Logical. Should all results of search be returned? If FALSE (default), only first value is returned.

Value

A character vector of variable name/s in .data

Author

Ernest Guevarra

Examples

find_var_names(.data = muac_admission, vars = "MUAC")
#> No matching variable name/s. Try again.
#> NULL