Search code examples
rcsvrdata

How to convert a csv file to an R.Data file


I have a csv file I generated in Python. I now need to convert it to an R.Data file for further downstream analyses, but I have no idea how to accomplish this.

Someone else asked this question a few years back but it has no solutions. Would really appreciate some input.

Previously asked question: Converting csv to Rdata


Solution

  • This is a classic situation of but why?, but if you must accomplish this then it is as easy as:

    data <- read.csv("my_file.csv")
    save(data, file = "my.file.RData")