grab: Select columns from a data frame using regular expressions

View source: R/grab.R

grabR Documentation

Select columns from a data frame using regular expressions

Description

Returns the set of columns in a data frame whose names correspond to a specific pattern

Usage

grab(x, pattern, ...)

## S3 method for class 'list'
grab(x, pattern, ...)

## S3 method for class 'data.frame'
grab(x, pattern, ...)

## S3 method for class 'character'
grab(x, pattern, ...)

Arguments

x

an object

pattern

a pattern

...

...

Value

something

NULL

NULL

NULL


lebatsnok/hammock documentation built on Dec. 2, 2022, 6:25 a.m.