guessFileEncoding {RclusTool} | R Documentation |
File Encoding Identification.
Description
Guess file encoding.
Usage
guessFileEncoding(file.name)
Arguments
file.name |
a character vector, describing one file. |
Details
guessFileEncoding guess file encoding.
Value
file character encoding.
Examples
dat <- rbind(matrix(rnorm(100, mean = 0, sd = 0.3), ncol = 2),
matrix(rnorm(100, mean = 2, sd = 0.3), ncol = 2),
matrix(rnorm(100, mean = 4, sd = 0.3), ncol = 2))
csv.file <- tempfile()
write.table(dat, csv.file, sep=",", dec=".")
guessFileEncoding(csv.file)
[Package RclusTool version 0.91.6 Index]