Learn R Programming

tm.plugin.webmining (version 1.3)

removeNonASCII: Remove non-ASCII characters from Text.

Description

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

Usage

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"