find_cols: Find Columns

View source: R/find_cols.R

find_colsR Documentation

Find Columns

Description

Find columns in a data frame by regular expression

Usage

find_cols(df, ..., value = TRUE, ignore.case = TRUE)

Arguments

df

A data frame

...

Keys to search for. Regular expressions must be qutoed.

value

Should the column names or positions be returned?

ignore.case

Should case be ignored in regular expression matching?

Note

This is mostly for interactive use

Author(s)

Sven Halvorson

Examples

find_cols(mtcars, ar, pg)
find_cols(mtcars, '^a')
find_cols(mtcars, 'ar', value = FALSE)

svenhalvorson/SvenR documentation built on Aug. 25, 2023, 1:31 p.m.