The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use (other programs) » Issue with importing Individual Recode datasets for India for the years 2015-2016 on R (Issue with importing Individual Recode datasets for India for the years 2015-2016 on R)
Re: Issue with importing Individual Recode datasets for India for the years 2015-2016 on R [message #25178 is a reply to message #24385] Fri, 09 September 2022 13:15 Go to previous message
Nidigot is currently offline  Nidigot
Messages: 7
Registered: July 2022
Member
This would be the ugliest work around, but download the file from DHS and then store it in RDHS' cache:

data <- read_dta('/Users/Nidi/Desktop/filename.DTA')
saveRDS(data, "~/Library/Caches/rdhs/datasets/filename.rds")

and then call the file from there.

If you necessarily would like to have it in the "downloads list" then store it (depending on where it should have been, but here I choose "1":

downloads[[1]] <- "~/Library/Caches/rdhs/datasets/filename.rds"

like I said: it is ugly, but it does work for your purpose
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Identifying siblings of a child that are below 1 years of age (R)
Next Topic: Complex sample in R(Weight DHS Data in R)
Goto Forum:
  


Current Time: Mon Feb 17 02:14:08 Coordinated Universal Time 2025