Description Details Author(s) Examples
Standardizes text according to a template; particularly useful for country names.
Package: | StandardizeText |
Type: | Package |
Version: | 1.0 |
Date: | 2013-3-4 |
License: | GPL-3 |
This package contains two main functions: standardize.text() standardizes generic text, and standardize.countrynames() is optimized for standardizing country names.
David Nepomechie; Maintainer: "Nepomechie, David Israel" <d.nepomechie@umiami.edu>
1 2 3 4 5 6 | library(StandardizeText)
sample.text <- c("blue car","STOP","email","tree")
sample.std <- c("the tree","car","e-mail","stop")
sample.df <- data.frame(foo=2:5,bar=sample.text, baz=7:4, qux=sample.std)
out.a <- standardize.text(sample.text,standard=sample.std,suggest="auto")
out.b <- standardize.text(sample.df,2,sample.df,"qux",suggest="auto")
|
The following names were changed:
Original Modified
1 STOP stop
2 email e-mail
3 tree the tree
The following suggested changes were applied:
Original Suggested
1 blue car car
The following names were changed:
Original Modified
1 STOP stop
2 email e-mail
3 tree the tree
The following suggested changes were applied:
Original Suggested
1 blue car car
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.