bt_leads_df_kw_filter: Keep/discard leads containing specified keywords Use...

View source: R/bt_leads_df_kw_filter.R

bt_leads_df_kw_filterR Documentation

Keep/discard leads containing specified keywords Use bt_update_core_kw_filter() for setting the relevant/classify instead

Description

Keep/discard leads containing specified keywords Use bt_update_core_kw_filter() for setting the relevant/classify instead

Usage

bt_leads_df_kw_filter(
  leads.df,
  key.words,
  positive = T,
  filter.cols = c("act.title.en", "act.description.en", "act.title.ll",
    "act.description.ll"),
  case.sensitive = F
)

Arguments

leads.df

dataframe to be filtered

key.words

character vector of words/phrases to filter (regex)

positive

if F, entries containing the key.words will be discarded.

filter.cols

which columns to use for filtering

Value

filtered dataframe

Examples

bt_leads_df_kw_filter(update.table, c("(import|export) tariff", "illegal trade practices"), filter.cols = "act.title.en")

global-trade-alert/gtabastiat documentation built on June 4, 2023, 6:40 a.m.