Description Usage Arguments Details Value
enc_check2()
detects invalid UTF-8 bytes by using
stringi::stri_enc_isutf8()
. NOTE: This function is intended only for
use on UTF-8 systems. If in doubt about your system encoding, run
Sys.getlocale()
.
1 | enc_check2(dataset)
|
dataset |
A data.frame. Untested for newer objects from dplyr, tibble, and data.table packages. |
This function generates zero false
positives. check_column_encoding
applies a character vector of regular
expressions that evaluate to invalid bytes to pattern matching functions
that search through dataset. enc_check2
utilizes
stringi::stri_enc_isutf8()
and processes the results into a useable
format.
Provisional: A matrix whose column names are those of dataset
,
or else a list with a single element if only one column of dataset
contains invalid UTF-8 bytes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.