makeAsciiChar: Make it an ASCII 'Character'

Description Usage Arguments Details Value

View source: R/formatValue.R

Description

Turn factor or character columns of a data.table into ASCII characters

Usage

1

Arguments

X

a data.table containing columns to be converted

Details

Dual functionality: turn factors into a characters, and ensure those characters are encoded as ASCII. Converting to ASCII relies on the stringi package, particularly stringi::stri_enc_mark (for detection of non-ASCII) and stringi::stri_enc_toascii (for conversion to ASCII).

This function is used when resaving data sets when building the package to ensure that it is portable.

Value

NULL (invisibly), but affects the contents of the data.table whose name was passed to this function


rBatt/trawlData documentation built on May 26, 2019, 7:45 p.m.