software

Converting RData files created by R on Windows for use on Linux

1 min read

Starting from the beginning: R is an open source statistical computing application. Since it is used in a Statistics course I am taking, a problem came up with some R files and text files whose format was not suitable for R on Linux. The problem in this case was that the files provided were encoded in ANSI instead of UTF8 (for example). For the text files, the following command is enough:

text
iconv -c --from-code ANSI --to-code UTF8 mundo.txt >mundo_utf8.txt

To use R data files created on Windows, we have to use an R installation on Windows to export the data, run the command above on the file with the exported data (adjusting the file name, of course) and import the converted file into R on Linux.

If anyone knows a better way, please leave a comment so I can improve the article.

#linux#r