https://github.com/mlampros/fuzzywuzzyr
fuzzy string matching in R
https://github.com/mlampros/fuzzywuzzyr
fuzzywuzzy matching python r reticulate string
Last synced: 9 months ago
JSON representation
fuzzy string matching in R
- Host: GitHub
- URL: https://github.com/mlampros/fuzzywuzzyr
- Owner: mlampros
- Created: 2017-04-13T16:33:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-05-27T04:24:39.000Z (about 3 years ago)
- Last Synced: 2025-03-22T16:50:59.958Z (over 1 year ago)
- Topics: fuzzywuzzy, matching, python, r, reticulate, string
- Language: R
- Homepage: https://mlampros.github.io/fuzzywuzzyR/
- Size: 335 KB
- Stars: 37
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/mlampros/fuzzywuzzyR/actions)
[](https://codecov.io/github/mlampros/fuzzywuzzyR?branch=master)
[](http://cran.r-project.org/package=fuzzywuzzyR)
[](http://www.r-pkg.org/pkg/fuzzywuzzyR)
[](https://cran.r-project.org/package=fuzzywuzzyR)
## fuzzywuzzyR
The **fuzzywuzzyR** package is a fuzzy string matching implementation of the [fuzzywuzzy](https://github.com/seatgeek/fuzzywuzzy) python package. It uses the [Levenshtein Distance](https://en.wikipedia.org/wiki/Levenshtein_distance) to calculate the differences between sequences. More details on the functionality of fuzzywuzzyR can be found in the [blog-post](http://mlampros.github.io/2017/04/13/fuzzywuzzyR_package/) and in the package Vignette.
### **System Requirements**
* Python (>= 3.8)
* difflib
* fuzzywuzzy ( >=0.15.0 )
* [python-Levenshtein](https://github.com/ztane/python-Levenshtein/) ( >=0.12.0, optional, provides a 4-10x speedup in String Matching, though may result in differing results for certain cases)
Before the installation of any python modules one should check the python-configuration using :
```R
reticulate::py_config()
```
All modules should be installed in the default python configuration (the configuration that the R-session displays as default), otherwise errors might occur during package installation.
#### **Linux OS (Debian, Ubuntu, Fedora etc.)**
```R
sudo apt-get install python3-pip
sudo pip3 install --upgrade pip
pip3 install fuzzywuzzy
pip3 install python-Levenshtein
```
#### **Mac OSX** and **Windows OS**
Users of the `fuzzywuzzyR` package will find the required information on how to configure Python for **Mac OSX** and **Windows OS** in the [reticulate](https://github.com/rstudio/reticulate) Github repository. The `fuzzywuzzyR` package depends on the `reticulate` package.
### **Installation of the fuzzywuzzyR package**
To install the package from CRAN use,
```R
install.packages('fuzzywuzzyR')
```
and to download the latest version from Github use the *install_github* function of the remotes package,
```R
remotes::install_github(repo = 'mlampros/fuzzywuzzyR')
```
Use the following link to report bugs/issues,
[https://github.com/mlampros/fuzzywuzzyR/issues](https://github.com/mlampros/fuzzywuzzyR/issues)
### **Citation:**
If you use the code of this repository in your paper or research please cite both **fuzzywuzzyR** and the **original software** [https://CRAN.R-project.org/package=fuzzywuzzyR/citation.html](https://CRAN.R-project.org/package=fuzzywuzzyR/citation.html):
```R
@Manual{,
title = {{fuzzywuzzyR}: Fuzzy String Matching in R},
author = {Lampros Mouselimis},
year = {2025},
note = {R package version 1.0.6},
url = {https://CRAN.R-project.org/package=fuzzywuzzyR},
}
```