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

View source: R/utilities.R

find_var_namesR Documentation

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

Description

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

Usage

find_var_names(df, vars, all = FALSE)

Arguments

df

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 df

Author(s)

Ernest Guevarra

Examples

find_var_names(df = otp_beneficiaries, vars = "MUAC")


rapidsurveys/squeacr documentation built on Dec. 23, 2024, 11:56 p.m.