subset_column: Subset a data frame column-wise by matching column names to a...

Description Usage Arguments Value Examples

View source: R/subset_column.R

Description

Subset a data frame column-wise by matching column names to a regex pattern

Usage

1

Arguments

df

A data frame

pattern

A regex pattern. A character vector.

Value

A data frame with column names which match the pattern. All rows in the data framr are returned.

Examples

1
subset_column(exercise, pattern = "blood")

antchau/glider documentation built on Dec. 1, 2020, 9:23 p.m.