Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • R to STATA

    Hello, I have a .Rdata file that I would like to convert into STATA. Can someone help to do this?
    Regards
    Roland

  • #2
    Hi Roland, welcome. If you have access to R, the easiest would be to convert the .Rdata file into something that Stata can import (.csv, .xlsx). The haven package in R can export to Stata datasets too, if I recall correct.

    Comment


    • #3
      Dear Leonardo, Thank you very much. I am not really familiar with R. But following your advice, I found this link: https://datatofish.com/export-dataframe-to-excel-in-r/
      I hope I will succeed. I am a beginner on R.

      Regards

      Roland

      Comment


      • #4
        Using the -foreign- package, R can write Stata files directly (version 12, I think).

        Comment

        Working...
        X