utf8_encoding: Use UTF-8 for character encoding in a data frame

View source: R/utf8_encoding.R

utf8_encodingR Documentation

Use UTF-8 for character encoding in a data frame

Description

fread from data.table could not recognize the encoding and return the correct form, this could be unconvenient for text mining tasks. The utf8-encoding could use "UTF-8" as the encoding to override the current encoding of characters in a data frame.

Usage

utf8_encoding(.data)

Arguments

.data

A data.frame.

Value

A data.table with characters in UTF-8 encoding


hope-data-science/tidyfst documentation built on Sept. 23, 2024, 8:05 p.m.