removeNonASCII: Remove non-ASCII characters from Text.

Description Usage Arguments

View source: R/transform.R

Description

This is a helper function to generate package data without non-ASCII character and omit the warning at R CMD check.

Usage

1
2
removeNonASCII(x, fields = c("Content", "Heading", "Description"),
  from = "UTF-8", to = "ASCII//TRANSLIT")

Arguments

x

object of PlainTextDocument class

fields

specifies fields to be converted, defaults to fields = c("Content", "Heading", "Description")

from

specifies encoding from which conversion should be done, defaults to "UTF-8"

to

speciefies target encoding, defaults to "ASCII//TRANSLIT"


tm.plugin.webmining documentation built on May 2, 2019, 1:10 p.m.