StandardizeText-package: Standardize Text

Description Details Author(s) Examples

Description

Standardizes text according to a template; particularly useful for country names.

Details

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.

Author(s)

David Nepomechie; Maintainer: "Nepomechie, David Israel" <d.nepomechie@umiami.edu>

Examples

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")

Example output

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

StandardizeText documentation built on May 1, 2019, 9:31 p.m.