excludeMatch: excludeMatch()

Description Usage Arguments Value Note Examples

View source: R/helper_functions.R

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 March 15, 2021, 5:19 a.m.