excludeMatch: excludeMatch()

Description Usage Arguments Value Note Examples

Description

Table function: remove rows of column with exact match of a specified value

Usage

1
excludeMatch(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, match of the value is removed.

Value

A data.frame with matched records removed, including empty df if all records matched

Note

only exact match is removed

Examples

1
2
3
column <- "date"
value <- "2014-01-01" # remove records with date 2014-01-01
excludeMatch(df, column, value)

BerylZhuang/helper_functions documentation built on May 12, 2019, 8:39 a.m.