varnames: Variable names of a dataset with a substring of interest

View source: R/varnames.R

varnamesR Documentation

Variable names of a dataset with a substring of interest

Description

This function searches within a given dataset for variable names that contain one or more specific substrings.

Usage

varnames(d, what, case_sensitive = FALSE)

Arguments

d

Dataset that contains the variable names of interest.

what

Character vector of substrings are assumed to be in the variable names.

case_sensitive

If FALSE, the default, R doesn't distinquish between upper and lower case.

Value

Returns a character vector with variable names of interest.

Author(s)

Dennis Freuer


freuerde/puzzle documentation built on March 27, 2022, 5:30 p.m.