View source: R/filter_not_in.R
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.
1 | filter_not_in(.data, OtherDf, columnInData, columnInOtherDf)
|
.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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.