match_locs_level2: match_locs_level2

View source: R/get_country.R

match_locs_level2R Documentation

match_locs_level2

Description

use stringdist to get best match for country name, if not official country

use stringdist to get best match for country name, if not official country

Usage

match_locs_level2(
  a,
  names = NULL,
  return_ISO3 = FALSE,
  return_name = TRUE,
  return_Code = FALSE,
  return_score = FALSE,
  return_score_matrix = FALSE
)

match_locations(
  a,
  names,
  return_name = TRUE,
  return_score = FALSE,
  return_score_matrix = FALSE
)

Arguments

a

location name to match

names

location names to match against

return_ISO3

TRUE/FALSE

return_name

TRUE/FALSE return standardized name

return_Code

TRUE/FALSE

return_score

TRUE/FALSE

return_score_matrix

TRUE/FALSE

Value

ISOs, country names, matching scores, full matching distance matrix

ISOs, country names, matching scores, full matching distance matrix


HopkinsIDD/globaltoolboxlite documentation built on Jan. 12, 2024, 5:49 a.m.