find_vars: Create middle IQR string from numeric vector

Description Usage Arguments Value Examples

View source: R/find_vars.R

Description

Create middle IQR string from numeric vector

Usage

1
find_vars(dat, pattern, ignore.case = TRUE)

Arguments

dat

data frame, tibble, or named vector

pattern

character vector to search for

ignore.case

logical for case sensitivity

Value

named vector with column or index locations with variable names

Examples

1
2
3
4
5
find_vars(mtcars, "cyl")
find_vars(1:100, "cyl")
mtcars[,find_vars(mtcars,"cyl")]
mtcars[,find_vars(mtcars,"c")]
mtcars[,find_vars(mtcars,"C",ignore.case = F)]

Ajfrick/AVRCHelp documentation built on Oct. 26, 2018, 8:17 p.m.