powered by
Examine file encoding.
file.encoding(file)
"latin1", "UTF-8", "unknown", or NA.
"latin1"
"UTF-8"
"unknown"
NA
This function requires the file shell command. If the file utility is not found in the path, this function looks for it inside c:/Rtools/bin. If the required software is not installed, this function returns NA.
file
c:/Rtools/bin
a filename.
Encoding examines the encoding of a string.
Encoding
latin1.to.utf8 converts files from latin1 to UTF-8 encoding.
latin1.to.utf8
latin1
UTF-8
line.endings examines line endings.
line.endings
icesTAF-package gives an overview of the package.
icesTAF-package
if (FALSE) { file.base <- system.file(package="base", "DESCRIPTION") file.nlme <- system.file(package="nlme", "DESCRIPTION") file.encoding(file.base) # ASCII file.encoding(file.nlme) }
Run the code above in your browser using DataLab