Convert Sav File To Excel In R

[Solved] Convert Sav File To Excel In R | Vb - Code Explorer | yomemimo.com
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

Answers related to convert sav file to excel in r

Code Explorer Popular Question For Vb