Learn R Programming

testdat (version 0.2)

test_utf8: Test for UTF-8 characters

Description

This test will check every column in a data.frame for possible unicode characters.

Usage

test_utf8(dat, verbose = F)

Arguments

dat
input dataset. Currently only supports data.frame but will soon support data.table
verbose
Default is FALSE. Set to TRUE for detailed information.

Examples

Run this code
## Not run: 
# data(iris)
# test_utf8(iris)
# temp <- structure(list(x = 'The\U3e32393cs quick brown fox jumps over the \U3e32393cs the lazy dog', y = 'Lorem\U3e32393cs ipsum \U3e32393cs dolor', dat = 43.5), .Names = c('x', 'y', 'dat'), row.names = c(NA, -1L), class = 'data.frame')
# test_utf8(temp)
# ## End(Not run)

Run the code above in your browser using DataLab