R haven
haven is a package providing file I/O functions.
Contents
Installation
haven is a part of the tidyverse collection.
Usage
Data Format |
Ingress Example |
Outgress Example |
SAS transport |
read_xpt("data.xpt") |
write_xpt(df, "data.xpt") |
SAS binary |
read_sas("data.sas7bdat") |
N/A |
SPSS |
read_sav("data.sav") |
write_sav(df, "data.sav") |
Stata |
read_dta("data.dta") |
write_dta(df, "data.dta") |
