haven: Import and Export 'SPSS', 'Stata' and 'SAS' Files

Import foreign statistical formats into R via the embedded 'ReadStat' C library (https://github.com/WizardMac/ReadStat).

Author
Hadley Wickham [aut, cre], Evan Miller [aut, cph] (Author of included ReadStat code), RStudio [cph]
Date of publication
2016-09-23 22:44:41
Maintainer
Hadley Wickham <hadley@rstudio.com>
License
MIT + file LICENSE
Version
1.0.0
URLs

View on CRAN

Man pages

as_factor
Convert input to a factor.
labelled
Create a labelled vector.
labelled_spss
Labelled vectors for SPSS
print_labels
Print the labels of a labelled vector
read_dta
Read and write Stata DTA files.
read_sas
Read and write SAS files.
read_spss
Read SPSS (SAV & POR) files. Write SAV files.
tagged_na
"Tagged" missing values
zap_empty
Convert empty strings into missing values.
zap_formats
Remove format attributes
zap_labels
Zap labels
zap_missing
Zap special missings to regular R missings

Files in this package

haven
haven/inst
haven/inst/examples
haven/inst/examples/iris.sas7bdat
haven/inst/examples/iris.dta
haven/inst/examples/iris.sav
haven/inst/doc
haven/inst/doc/semantics.Rmd
haven/inst/doc/datetimes.html
haven/inst/doc/semantics.R
haven/inst/doc/datetimes.Rmd
haven/inst/doc/semantics.html
haven/tests
haven/tests/testthat.R
haven/tests/testthat
haven/tests/testthat/hadley.sas7bdat
haven/tests/testthat/helper-lump.R
haven/tests/testthat/test-write-dta.R
haven/tests/testthat/labelled-str.sav
haven/tests/testthat/tagged-na.sas7bdat
haven/tests/testthat/test-replace_with.R
haven/tests/testthat/labelled-num-na.sav
haven/tests/testthat/types.dta
haven/tests/testthat/tagged-na-int.dta
haven/tests/testthat/test-as-factor.R
haven/tests/testthat/variable-label.sav
haven/tests/testthat/test-tagged_na.R
haven/tests/testthat/tagged-na.txt
haven/tests/testthat/test-labelled_spss.R
haven/tests/testthat/labelled-output.txt
haven/tests/testthat/test-read-connection.R
haven/tests/testthat/hadley.zip
haven/tests/testthat/datetime-d.dta
haven/tests/testthat/test-zap_missing.R
haven/tests/testthat/labelled-num.sav
haven/tests/testthat/datetime.sas7bdat
haven/tests/testthat/test-read-stata.R
haven/tests/testthat/write-sas.R
haven/tests/testthat/datetime.sav
haven/tests/testthat/test-zap_labels.R
haven/tests/testthat/test-labelled.R
haven/tests/testthat/tagged-na-double.dta
haven/tests/testthat/test-zap-empty.R
haven/tests/testthat/formats.sas7bcat
haven/tests/testthat/test-read-sav.R
haven/tests/testthat/test-read-sas.R
haven/tests/testthat/test-write-sav.R
haven/tests/testthat/helper-roundtrip.R
haven/tests/testthat/labelled-spss-output.txt
haven/tests/testthat/notes.dta
haven/tests/testthat/umlauts.sav
haven/tests/testthat/tagged-na.sas7bcat
haven/src
haven/src/Makevars
haven/src/readstat
haven/src/readstat/readstat_bits.h
haven/src/readstat/CKHashTable.h
haven/src/readstat/readstat_convert.c
haven/src/readstat/spss
haven/src/readstat/spss/readstat_sav_read.c
haven/src/readstat/spss/readstat_sav_parse_timestamp.h
haven/src/readstat/spss/readstat_sav_write.c
haven/src/readstat/spss/readstat_sav_parse.c
haven/src/readstat/spss/readstat_spss.h
haven/src/readstat/spss/readstat_por_parse.c
haven/src/readstat/spss/readstat_por.c
haven/src/readstat/spss/readstat_sav.c
haven/src/readstat/spss/readstat_por_read.c
haven/src/readstat/spss/readstat_spss_parse.h
haven/src/readstat/spss/readstat_sav.h
haven/src/readstat/spss/readstat_spss.c
haven/src/readstat/spss/readstat_por_parse.h
haven/src/readstat/spss/readstat_sav_parse.h
haven/src/readstat/spss/readstat_spss_parse.c
haven/src/readstat/spss/readstat_sav_parse_timestamp.c
haven/src/readstat/spss/readstat_por.h
haven/src/readstat/spss/readstat_por_write.c
haven/src/readstat/readstat_variable.c
haven/src/readstat/readstat_writer.c
haven/src/readstat/sas
haven/src/readstat/sas/readstat_sas7bcat_write.c
haven/src/readstat/sas/readstat_sas_rle.h
haven/src/readstat/sas/readstat_sas.c
haven/src/readstat/sas/readstat_sas7bcat_read.c
haven/src/readstat/sas/readstat_sas7bdat_read.c
haven/src/readstat/sas/readstat_sas_rle.c
haven/src/readstat/sas/readstat_sas7bdat_write.c
haven/src/readstat/sas/readstat_sas.h
haven/src/readstat/readstat_io_unistd.c
haven/src/readstat/readstat_bits.c
haven/src/readstat/readstat_error.c
haven/src/readstat/readstat_io_unistd.h
haven/src/readstat/readstat.h
haven/src/readstat/readstat_convert.h
haven/src/readstat/readstat_iconv.h
haven/src/readstat/readstat_value.c
haven/src/readstat/readstat_parser.c
haven/src/readstat/stata
haven/src/readstat/stata/readstat_dta_parse_timestamp.c
haven/src/readstat/stata/readstat_dta_write.c
haven/src/readstat/stata/readstat_dta_parse_timestamp.h
haven/src/readstat/stata/readstat_dta.c
haven/src/readstat/stata/readstat_dta_read.c
haven/src/readstat/stata/readstat_dta.h
haven/src/readstat/CKHashTable.c
haven/src/readstat/readstat_writer.h
haven/src/DfWriter.cpp
haven/src/haven_types.h
haven/src/DfReader.cpp
haven/src/tagged_na.c
haven/src/Makevars.win
haven/src/RcppExports.cpp
haven/src/tagged_na.h
haven/NAMESPACE
haven/NEWS.md
haven/R
haven/R/zap_missing.R
haven/R/as_factor.R
haven/R/zap_formats.R
haven/R/update.R
haven/R/labelled_spss.R
haven/R/haven.R
haven/R/RcppExports.R
haven/R/tagged_na.R
haven/R/labelled.R
haven/R/zap_empty.R
haven/R/zzz.R
haven/R/zap_labels.R
haven/vignettes
haven/vignettes/semantics.Rmd
haven/vignettes/rsconnect
haven/vignettes/rsconnect/documents
haven/vignettes/rsconnect/documents/semantics.Rmd
haven/vignettes/rsconnect/documents/semantics.Rmd/rpubs.com
haven/vignettes/rsconnect/documents/semantics.Rmd/rpubs.com/rpubs
haven/vignettes/rsconnect/documents/semantics.Rmd/rpubs.com/rpubs/Document.dcf
haven/vignettes/datetimes.Rmd
haven/README.md
haven/MD5
haven/build
haven/build/vignette.rds
haven/DESCRIPTION
haven/man
haven/man/tagged_na.Rd
haven/man/print_labels.Rd
haven/man/read_dta.Rd
haven/man/zap_empty.Rd
haven/man/labelled_spss.Rd
haven/man/read_spss.Rd
haven/man/zap_missing.Rd
haven/man/as_factor.Rd
haven/man/labelled.Rd
haven/man/zap_formats.Rd
haven/man/zap_labels.Rd
haven/man/read_sas.Rd
haven/LICENSE