grepnames: Search for a string in column names

View source: R/grepnames.R

grepnamesR Documentation

Search for a string in column names

Description

Performs a grep regex search on the column names of a data frame, returning the values and their column number.

Usage

grepnames(str = ".*", x, ignorecase = T, sortalpha = F)

Arguments

str

a regex string to find. Defaults to ".*"

x

the object to search. Expect a data frame

ignorecase

should the search ignore case. Default = T


crazybilly/ucbudar documentation built on July 15, 2024, 5:03 p.m.