filterMatch: filterMatch()

Description Usage Arguments Value Note Examples

View source: R/helper_functions.R

Description

Table function: filter a df by column with exact match of specified values

Usage

1
filterMatch(df, column, value)

Arguments

df

A data.frame to be filtered

column

(str) column to be filtered

value

(str) a str to match with the value column.

Value

A data.frame with matched records, including empty df if no match is found

Note

only exact match is returned

Examples

1
2
3
column <- "date"
value <- "2014-01-01"
filterMatch(df, column, value)

BerylZhuang/helper_functions documentation built on March 15, 2021, 5:19 a.m.