do_ocr_replacement: Replace a string with its ocr error.

Description Usage Arguments Value

View source: R/make_ocr_error.R

Description

do_ocr_replacement replace a string with its ocr error.

Usage

1
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.


sdglinkage documentation built on April 27, 2020, 5:09 p.m.