- new
.keep_value_labels
argument forrecode.haven_labelled()
- new
.combine_value_labels
argument forrecode.haven_labelled()
(#61) - new
drop_unused_value_labels()
method - an additional
.labels
argument forset_value_labels()
user_na_to_na
argument has been added toto_character.haven_labelled()
%>%
is now imported fromdplyr
- a cheatsheet has been added (#47)
- internal documentation is now using roxygen2 markdown support
- fixes for haven 2.3.0 (#59 by @hadley)
- correct re-export of functions from
haven
update_labelled()
has been improved to allow to reconstruct all labelled vectors created with a previous versiob ofhaven
- an additional argument
keep_var_label
forremove_labels()
- bug fix for
unlabelled()
when applied on a vector - when using
unclass = TRUE
withto_factor()
, attributes are not removed anymore
- new function
unlabelled()
- bug fix for
look_for()
(#52 by @NoahMarconi) - bug fix in
val_labels_to_na()
documentation
- bug fix for
na_range()
andna_values()
: variable labels are now preserved (#48, thanks to @mspittler)
- new function
copy_labels_from()
, compliant withdplyr
syntax update_labelled()
is now more strict (#42 by @iago-pssjd)- new functions
look_for()
andlookfor()
imported fromquestionr
(#44) - new
unlist
option forvar_label()
tagged_na()
and similar functions are now imported fromhaven
var_label()
, applied to a data.frame, now accepts a character vector of same length as the number of columns.set_variable_labels
has a new.labels
argument.- New
unclass
option into_factor()
, to be used whenstrict = TRUE
(#36) - Following
haven
version 2.1.0, it is not mandatory anymore to define a value label before defining a SPSS style missing value.labelled_spss()
,na_values()
andna_range()
have been updated accordingly (#37)
to_factor()
bug fix then applied on a data.frame (#33)
update_labelled()
bug fix then applied on a data.frame (#31)
- Following version 2.0.0 of
haven
,labelled()
andlabelled_spss()
now produce objects with class "haven_labelled" and "haven_labelled_spss", due to conflict between the previous "labelled" class and the "labelled" class used byHmisc
. - A new function
update_labelled()
could be used to convert data imported with an older version ofhaven
to the new classes.
user_na_to_na
option added toto_factor()
foreign_to_labelled()
now import SPSS missing values (#27)- a
strict
argument added toto_factor()
(#25) remove_attributes()
preserve character vectors (#30)
- extend
dplyr::recode()
method to be compatible with labelled vectors. copy_labels()
now copy alsona_range
andna_values
attributes.- new method
remove_attributes()
- bug fix: argument
drop_unused_labels
could now be used withto_factor.data.frame()
- new labels argument for
to_labelled()
method when applied to a factor - bug fix: appropriate column names with
data.frame
(#20)
- now imports
haven
- new function to deal with user defined missing values (SPSS style):
na_values()
,na_range()
,set_na_values()
,set_na_values()
,remove_user_na()
,user_na_to_na()
. remove_labels()
has been updated.
- new functions
set_variable_labels()
,set_value_labels()
,add_value_labels()
andremove_value_labels()
compatible with%>%
. - new functions
remove_val_labels
andremove_var_label()
. - bug fix in
to_character.labelled()
when applied to data frames.
to_factor()
,to_character()
andto_labelled.factor()
now preserves variable label.- bug fix in
to_factor()
when applied to data frames.
- Following evolution of
haven
,labelled
deosn't support missing values anymore (cf. https://github.com/hadley/haven/commit/4b12ff9d51ddb9e7486966b85e0bcff44992904d) - New function
to_character()
(cf. https://github.com/larmarange/labelled/commit/3d32852587bb707d06627e56407eed1c9d5a49de) to_factor()
could now be applied to a data.frame (cf. https://github.com/larmarange/labelled/commit/ce1d750681fe0c9bcd767cb83a8d72ed4c5fc5fb)- If
data.table
is available, labelled attribute are now changed by reference (cf. https://github.com/larmarange/labelled/commit/c8b163f706122844d798e6625779e8a65e5bbf41) zap_labels()
added as a synonym ofremove_labels()