Announcement

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

  • Conversion of .RDS file to .dta format

    This data set consists of Annual Mean PM2.5 Components (Elemental Carbon (EC), Ammonium (NH4+), Nitrate (NO3-), Organic Carbon (OC), Sulfate (SO42-)) 50m Urban and 1km Non-Urban Area Grids for the Contiguous U.S., 2000-2019 in RDS file format, a file format native to R programming language.

    This is uploaded on NASA's public website but it needs registration to log into the data website ( https://sedac.ciesin.columbia.edu/da.../data-download )

    Can anyone give me guideline how I can transform a .rds file to .dta format without too much problem ? I'd prefer if I can do it from stata. These data are pretty big, and I don't want to use R.

  • #2
    I have used the following method but no data was uploaded even though there was no error after using the command.

    Code:
    net install github, from("https://haghish.github.io/github/")
    
    github install haghish/rcall, stable
    
    rcall: data <- readRDS("2015_non_urban.rds")
    Code:
    rcall: data <- readRDS("2015_non_urban.rds")
    
    end of do-file
    If command was successful, then why data was not uploaded.

    Comment


    • #3
      Please read the rcall article. Your syntax does not tell rcall to force load the data back to Stata.

      See this link for rcall functions: https://github.com/haghish/rcall/wiki/Functions

      Paper: https://journals.sagepub.com/doi/pdf/10.1177/1536867X19830891

      Comment

      Working...
      X