Say that you have several files from different places or times and you wanted
to run your program on all of them without reprogramming. You could start with
the readr package and use guess_encoding.
j <- 1
for (i in file_paths){
file_encoding[j] <- as.character(readr::guess_encoding(i)$encoding
On 2024-09-07 7:37 p.m., Jeff Newmiller wrote:
I tried it on R 4.4.1 on Linux Mint 21.3 just before I posted it, and I just
tried it on R 3.4.2 on Ubuntu 16.04 and R 4.3.2 on Windows 11 just now and it
works on all of them.
I don't have a big-endian machine to test on, but the Unicode spec say
2 matches
Mail list logo