guessFileEncoding: File Encoding Identification.

View source: R/sampleCompute.R

guessFileEncodingR 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)



RclusTool documentation built on May 29, 2024, 5:23 a.m.