Learn R Programming

sdglinkage (version 0.1.0)

do_ocr_replacement: Replace a string with its ocr error.

Description

do_ocr_replacement replace a string with its ocr error.

Usage

do_ocr_replacement(s, where, orgpat, newpat)

Arguments

s

A string.

where

A string. The location of the pat, it can be one of: 'ALL','START','END','MIDDLE'.

orgpat

A string. The original pat.

newpat

A string. The new pat.

Value

It returns a new pat.