Skip to content
Back to skills

Fuzzyjoin

ASecurity

R fuzzyjoin package for fuzzy matching joins. Use for joining tables by inexact matching on strings, numbers, or distances.

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 4, 2026
datago

Security analysis

A100/100

Scanned June 4, 2026

npx -y skills add LeoLin990405/r-analytics-skill --skill fuzzyjoin --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fuzzyjoin?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fuzzyjoin
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leolin990405-fuzzyjoin/badge)](https://www.skillsdirectory.com/skills/leolin990405-fuzzyjoin)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fuzzyjoin
description: R fuzzyjoin package for fuzzy matching joins. Use for joining tables by inexact matching on strings, numbers, or distances.
---

# fuzzyjoin

Join tables by inexact matching.

## String Matching

```r
library(fuzzyjoin)

# Regex join
regex_left_join(df1, df2, by = c("name" = "pattern"))
regex_inner_join(df1, df2, by = "name")

# Fuzzy string matching (stringdist)
stringdist_left_join(df1, df2, by = "name", max_dist = 2)
stringdist_inner_join(df1, df2, by = "name", method = "jw", max_dist = 0.1)

# Methods: "osa", "lv", "dl", "hamming", "lcs", "qgram", "cosine", "jaccard", "jw"
```

## Numeric Matching

```r
# Difference join (within tolerance)
difference_left_join(df1, df2, by = "value", max_dist = 5)

# Distance join
distance_left_join(df1, df2, by = c("x", "y"), max_dist = 10)
```

## Interval Matching

```r
# Interval join (overlapping ranges)
interval_left_join(df1, df2, by = c("start", "end"))

# Genome-style intervals
genome_left_join(df1, df2, by = c("chr", "start", "end"))
```

## Geographic Matching

```r
# Geo join (within distance)
geo_left_join(df1, df2,
  by = c("lat", "lon"),
  max_dist = 10,
  unit = "km"
)
```

## Custom Matching

```r
# Fuzzy join with custom function
fuzzy_left_join(df1, df2,
  by = c("x" = "y"),
  match_fun = function(x, y) abs(x - y) < 5
)

# Multiple conditions
fuzzy_left_join(df1, df2,
  by = c("a" = "b", "c" = "d"),
  match_fun = list(`<`, `>`)
)
```

## Semi and Anti Joins

```r
# Fuzzy semi join (filter matches)
stringdist_semi_join(df1, df2, by = "name", max_dist = 2)

# Fuzzy anti join (filter non-matches)
stringdist_anti_join(df1, df2, by = "name", max_dist = 2)
```

## All Join Types

```r
# Available for all fuzzy methods:
# _inner_join, _left_join, _right_join, _full_join
# _semi_join, _anti_join

stringdist_inner_join(df1, df2, by = "name")
stringdist_full_join(df1, df2, by = "name")
regex_semi_join(df1, df2, by = "name")
difference_anti_join(df1, df2, by = "value")
```

## Examples

```r
# Match company names with typos
companies <- data.frame(name = c("Microsoft", "Apple Inc", "Google"))
records <- data.frame(company = c("Microsft", "Apple", "Gogle"))

stringdist_left_join(records, companies,
  by = c("company" = "name"),
  max_dist = 2
)

# Match dates within range
events <- data.frame(date = as.Date(c("2024-01-15", "2024-02-20")))
periods <- data.frame(
  start = as.Date(c("2024-01-01", "2024-02-01")),
  end = as.Date(c("2024-01-31", "2024-02-28"))
)

fuzzy_left_join(events, periods,
  by = c("date" = "start", "date" = "end"),
  match_fun = list(`>=`, `<=`)
)
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.