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

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

Browse man pages Browse package API and functions Browse package files

AuthorHadley Wickham [aut, cre], Evan Miller [aut, cph] (Author of included ReadStat code), RStudio [cph]
Date of publication2016-09-23 22:44:41
MaintainerHadley Wickham <hadley@rstudio.com>
LicenseMIT + file LICENSE
Version1.0.0
URL https://github.com/hadley/haven https://github.com/WizardMac/ReadStat
Package repositoryView on CRAN
InstallationInstall the latest version of this package by entering the following in R:
install.packages("haven")

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

Functions

as.data.frame.labelled Source code
as_factor Man page Source code
as_factor.character Man page Source code
as_factor.data.frame Man page Source code
as_factor.factor Man page Source code
as_factor.labelled Man page Source code
df_parse_dta_file Source code
df_parse_dta_raw Source code
df_parse_por_file Source code
df_parse_por_raw Source code
df_parse_sas_file Source code
df_parse_sas_raw Source code
df_parse_sav_file Source code
df_parse_sav_raw Source code
format_tagged_na Man page Source code
is.labelled Man page Source code
is.na.labelled_spss Source code
is_coercible Source code
is_tagged_na Man page Source code
label_length Source code
labelled Man page Source code
labelled_spss Man page Source code
na_tag Man page Source code
onUnload Source code
print.labelled Source code
print.labelled_spss Source code
print_labels Man page Source code
print_tagged_na Man page Source code
read_dta Man page Source code
read_por Man page Source code
read_sas Man page Source code
read_sav Man page Source code
read_spss Man page Source code
read_stata Man page Source code
replace_with Source code
stata_file_format Source code
tagged_na Man page Source code
type_sum.labelled Source code
update_readstat Source code
validate_dta Source code
var_names Source code
write_dta Man page Source code
write_dta_ Source code
write_sas Man page Source code
write_sas_ Source code
write_sav Man page Source code
write_sav_ Source code
zap_empty Man page Source code
zap_formats Man page Source code
zap_formats.data.frame Source code
zap_formats.default Source code
zap_labels Man page Source code
zap_labels.data.frame Source code
zap_labels.default Source code
zap_labels.labelled Source code
zap_labels.labelled_spss Source code
zap_missing Man page Source code
zap_missing.data.frame Source code
zap_missing.default Source code
zap_missing.labelled Source code
zap_missing.labelled_spss Source code

Files

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