haven 2.1.0
Improved labelling
labelled
objects get pretty printing that shows the labels and NA values when inside of a tbl_df
. Turn this behaviour off with behavior using option(haven.show_pillar_labels = FALSE)
(#340, @gergness).
labelled()
and labelled_spss()
now allow NULL
labels. This makes both classes more flexible, allowing you to use them for their other attributes (#219).
labelled()
tests that value labels are unique (@larmarange, #364)
Minor improvements and bug fixes
-
as_factor()
:- Is faster when input doesn't contain any missing values (@HughParsonage).
- Added
labelled
method for backward compatbility (#414). data.frame
method now correctly passes...
along (#407, @zkamvar).
-
write_dta()
now checks that the labelled values are integers, not the
values themselves (#401). -
Updated to latest ReadStat from @evanmiller:
read_por()
can now read files from SPSS 25 (#412)read_por()
now uses base-30 instead of base-10 for the exponent (#413)read_sas()
can read zero column file (#420)read_sav()
reads long strings (#381)read_sav()
has greater memory limit allowing it to read more labels (#418)read_spss()
reads long variable labels (#422)write_sav()
no longer creates incorrect column names when >10k columns (#410)write_sav()
no longer crashes when writing long label names (#395)