Employs String Distance Tools to Help Clean Categorical Data

Matching with string distance has never been easier! 'messy.cats' contains various functions that employ string distance tools in order to make data management easier for users working with categorical data. Categorical data, especially user inputted categorical data that often tends to be plagued by typos, can be difficult to work with. 'messy.cats' aims to provide functions that make cleaning categorical data simple and easy.


messy.cats

The goal of messy.cats is to make cleaning messy categorical easier. User inputted character categorical data often suffers from messiness than can be complicated and time consuming to clean up. When inputting data, users often make typos or formatting errors than cause stubborn, hard to detect issues in their data. By leveraging string distance measurement tools, messy.cats allows users to automate many of the steps involved with cleaning categorical data. This enables users to spend less time fiddling around with inconsistent categorical data with less effort.

Installation

You can install the released version of messy.cats from GITHUB with:

if(!require(devtools)){
 install.packages("devtools")
}
devtools::install_github("hkarp1/messy.cats")

Example

This is a basic example which shows you how to solve a common problem:

library(messy.cats)
plant_categories = c("tree", "bush", "herb", "grass")
messy_plant_categories = c("green tree", "red bush", "new herb", "old grass", "young tree", "small bush", "20 herbs", "the grass", "a tree", 
"bushes", "herbs", "tall grass")

cat_match(plant_categories, messy_plant_categories)

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("messy.cats")

1.0 by Harrison Karp, 4 years ago


Report a bug at https://github.com/hkarp1/messy.cats/issues


Browse source code at https://github.com/cran/messy.cats


Authors: Andrew Hennessy [aut] , Duncan Kreutter [aut] , Harrison Karp [cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports dplyr, stringdist, varhandle, rapportools, stringr, gt

Suggests knitr, rmarkdown


See at CRAN