subset_row: Subset a data frame row-wise by matching row values to a...

Description Usage Arguments Value Examples

View source: R/subset_row.R

Description

Subset a data frame row-wise by matching row values to a regex pattern

Usage

1

Arguments

df

A data frame

pattern

A regex pattern.

x

Column name to search through. Only specify 1 column name

Value

A data frame with row values which match the pattern. All columns in the data frame are returned.

Examples

1
subset_row(who_data, pattern = "^A", "country_name")

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