Package: haven 2.5.5

Hadley Wickham

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>.

Authors:Hadley Wickham [aut, cre], Evan Miller [aut, cph], Danny Smith [aut], Posit Software, PBC [cph, fnd]

haven_2.5.5.tar.gz
haven_2.5.5.zip(r-4.7)haven_2.5.5.zip(r-4.6)haven_2.5.5.zip(r-4.5)
haven_2.5.5.tgz(r-4.6-x86_64)haven_2.5.5.tgz(r-4.6-arm64)haven_2.5.5.tgz(r-4.5-x86_64)haven_2.5.5.tgz(r-4.5-arm64)
haven_2.5.5.tar.gz(r-4.7-arm64)haven_2.5.5.tar.gz(r-4.7-x86_64)haven_2.5.5.tar.gz(r-4.6-arm64)haven_2.5.5.tar.gz(r-4.6-x86_64)
haven_2.5.5.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
haven/json (API)
NEWS

# Install 'haven' in R:
install.packages('haven', repos = c('https://razvanazamfirei.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/tidyverse/haven/issues

Pkgdown/docs site:https://haven.tidyverse.org

Uses libs:
  • zlib– Compression library
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

sasspssstatazlibcpp

18.88 score 451 stars 758 packages 31k scripts 589k downloads 21 mentions 28 exports 25 dependencies

Last updated from:ec7f034d14 (on v2.5.5). Checks:13 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK157
linux-devel-x86_64OK159
source / vignettesOK206
linux-release-arm64OK151
linux-release-x86_64OK150
macos-release-arm64OK110
macos-release-x86_64OK215
macos-oldrel-arm64OK153
macos-oldrel-x86_64OK209
windows-develOK234
windows-releaseOK135
windows-oldrelOK134
wasm-releaseOK132

Exports:as_factorformat_tagged_nais_tagged_nais.labelledlabelledlabelled_spssna_tagprint_labelsprint_tagged_naread_dtaread_porread_sasread_savread_spssread_stataread_xpttagged_navec_arith.haven_labelledwrite_dtawrite_saswrite_savwrite_xptzap_emptyzap_formatszap_labelzap_labelszap_missingzap_widths

Dependencies:bitbit64clicliprcpp11crayonforcatsgluehmslifecyclemagrittrpillarpkgconfigprettyunitsprogressR6readrrlangtibbletidyselecttzdbutf8vctrsvroomwithr

Conversion semantics

Rendered fromsemantics.Rmdusingknitr::rmarkdownon May 21 2026.

Last update: 2018-01-07
Started: 2016-05-31

Dates and times

Rendered fromdatetimes.Rmdusingknitr::rmarkdownon May 21 2026.

Last update: 2023-02-25
Started: 2015-02-27

Readme and manuals

Help Manual

Help pageTopics
Convert labelled vectors to factorsas_factor as_factor.data.frame as_factor.haven_labelled as_factor.labelled
Create a labelled vector.is.labelled labelled
Labelled vectors for SPSSlabelled_spss
Print the labels of a labelled vectorprint_labels
Read and write Stata DTA filesread_dta read_stata write_dta
Read SAS filesread_sas
Read and write SPSS filesread_por read_sav read_spss write_sav
Read and write SAS transport filesread_xpt write_xpt
"Tagged" missing valuesformat_tagged_na is_tagged_na na_tag print_tagged_na tagged_na
Convert empty strings into missing valueszap_empty
Remove format attributeszap_formats
Zap variable labelszap_label
Zap value labelszap_labels zap_labels.haven_labelled_spss
Zap special missings to regular R missingszap_missing
Remove display width attributeszap_widths