haven 2.0.0
BREAKING CHANGES
-
labelled()
andlabelled_spss()
now produce objects with class
"haven_labelled" and "haven_labelled_spss". Previously, the "labelled"
class name clashed with the labelled class defined by Hmisc (#329).Unfortunately I couldn't come up with a way to fix this problem except
to change the class name; it seems reasonable that haven should be the one
to change names given that Hmisc has been around much longer. This
will require some changes to packages that use haven, but shouldn't
affect user code.
Minor improvements
-
labelled()
andlabelled_spss()
now support adding thelabel
attribute to the resulting object. Thelabel
is a short,
human-readable description of the object, and is now also used
when printing, and can be easily removed using the newzap_label()
function. (#362, @huftis)Previously, the
label
attribute was supported both when reading
and writing SPSS files, but it was not possible to actually create
objects in R having thelabel
attribute using the constructors
labelled()
orlabelled_spss()
.