fuzzy_match: Create a template table for tidying a text-column

Description Usage Arguments See Also Examples

View source: R/fuzzy_match.R

Description

Create a template table for tidying a text-column

Usage

1
2
3
4
5
6
7
fuzzy_match(
  .data,
  stringvar,
  threshold = options("fuzzy_threshold")[[1]],
  .listpool = NULL,
  ...
)

Arguments

.data

A data.frame or tbl

stringvar

The name of the column to be tidy (quoted or not)

threshold

the minimum distance between strings considered as OK

.listpool

An optional list provided by fuzzy_pool()

...

additional arguments for the function stringdist()

See Also

stringdist()

Examples

1
2
3
4
test_df <- data.frame(fruit = c("banana", "blueberry", "limon", "pinapple",
                                "apple", "aple", "Apple", "bonana"))
fuzzy_template <- fuzzy_match(test_df, fruit)
fuzzy_template

courtiol/dfuzz documentation built on Oct. 28, 2020, 6 a.m.