Reads an SPSS portable .por file and preserves user-defined missing values
as tagged NAs. This is the portable format equivalent of read_spss() for
.sav files.
Arguments
- path
Path to an SPSS
.porfile.- tag.na
If
TRUE(the default), user-defined missing values are converted to tagged NAs usinghaven::tagged_na(). IfFALSE, the file is read with standardhaven::read_por()behavior.- verbose
If
TRUE, prints a message summarizing how many values were converted.
Value
A tibble with the SPSS data. See read_spss() for details on
tagged NA handling.
Details
The SPSS portable format (.por) is an older, platform-independent format.
Unlike .sav files, the portable format does not support specifying a
character encoding. Tagged NA handling is identical to read_spss().
See also
read_spss(), na_frequencies(), untag_na(), strip_tags(),
haven::read_por()
Other data-import:
na_frequencies(),
read_sas(),
read_spss(),
read_stata(),
read_xlsx(),
read_xpt(),
strip_tags(),
untag_na()
Examples
if (FALSE) { # \dontrun{
data <- read_por("survey.por")
na_frequencies(data$satisfaction)
} # }
