filterMatch: filterMatch()

Description Usage Arguments Value Note Examples

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 May 12, 2019, 8:39 a.m.