test_utf8: Test for UTF-8 characters

Description Usage Arguments Examples

Description

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

Usage

1
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

1
2
3
4
5
6
7
## 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)

muschellij2/testdat documentation built on May 23, 2019, 9:56 a.m.