join_data: Perform LeftJoin on Data

Description Usage Arguments Value Examples

View source: R/join_data.R

Description

Description

Usage

1
join_data(.source, .target, .cols_match, .cols_join, .method = "osa")

Arguments

.source

The Source Dataframe.
(Must contain a unique column id and the columns you want to match on)

.target

The Target Dataframe.
(Must contain a unique column id and the columns you want to match on)

.cols_match

A character vector of columns to perform fuzzy matching.

.cols_join

Columns to perfrom an exact match on, before fuzzy-matching.
(Matched IDs will be excluded from fuzzy-match)

.method

One of "osa", "lv", "dl", "hamming", "lcs", "qgram", "cosine", "jaccard", "jw", "soundex".
See: stringdist-metrics stringdist

Value

A Dataframe

Examples

1
2
3
4
5
6
7
join_data(
  .source = table_source,
  .target = table_target,
  .cols_match = c("name", "iso3", "city", "address"),
  .cols_join = c("name", "iso3"),
  .method = "osa"
)

MatthiasUckert/Rmatch documentation built on Jan. 3, 2022, 11:09 p.m.