Question : convert sav file to excel in R
Answered by : lazy-lizard-una36mf7iins
library(haven)
library(readr)
HNIR62FL_data_2 <- read_sav("~/DHS/HNIR62SV/HNIR62FL_data_2.SAV")
getwd() # this is the folder it will save into unless you specify otherwise in the path below
write_csv(x=HNIR62FL_data_2, path="from_sav_data.csv")
Source : https://community.rstudio.com/t/how-do-i-convert-a-sav-file-to-a-csv-file-in-r/73366 | Last Update : Tue, 30 Nov 21