filter_not_in: Title

Description Usage Arguments

View source: R/filter_not_in.R

Description

When you are looking to filter out items that appear in another dataframe, negating an %in% filter returns all records if you mistakenly refer to a column that does not exist in the comparison dataframe. This function protects against code running smoothly and the risk of missing the mistake by throwing an error.

Usage

1
filter_not_in(.data, OtherDf, columnInData, columnInOtherDf)

Arguments

.data

your dataframe

OtherDf

another data frame that you are comparing records with

columnInData

the column in your original dataframe that will be the basis of the filter

columnInOtherDf

the corresponding column found in the dataframe that you are comparing to


patdkeller/instR documentation built on April 13, 2021, 12:47 p.m.