Filter rows of a data.frame by country

filter_by_country(
  .df = df,
  country = "Brazil",
  country_type = "Country_current"
)

Arguments

.df

a data.frame

country

character, country to search for

country_type

character, name of the column in which to search for country

Value

a data.frame filtered by rows containing country