sjlabelled 1.2.0
CRAN release: 2022-04-10
Breaking
- The
atomic.to.facargument was renamed toconvert.factors. Furthermore, this argument now defaults toTRUE.
sjlabelled 1.1.8
CRAN release: 2021-05-11
Changes to functions
-
label_to_colnames()gets a...argument, to change only column names of selected variables.
sjlabelled 1.1.7
CRAN release: 2020-09-24
General
-
write_spss()gets acompressargument, to save data as compressed SPSS file (zsav-format). - The select-helper
num_range()is now also supported. - Give proper warning when
set_labels()was used on a vector with completely missing values.
sjlabelled 1.1.4
CRAN release: 2020-04-30
Bug fixes
- Fixed issues in
remove_labels()when factor levels were strings. - Fixed Namespace issues in vignettes.
sjlabelled 1.1.2
CRAN release: 2020-01-17
General
- Reduce package dependencies.
-
get_dv_labels()was renamed toresponse_labels().get_dv_labels()will remain as alias. -
get_term_labels()was renamed toterm_labels().get_term_labels()will remain as alias.
New functions
-
label_to_colnames()as a convenient shortcut to set variable labels as column names.
Changes to functions
-
copy_labelsgets a...-argument to copy only specific variables values. - The
read_*()functions are now less verbose by default.
Bug fixes
- Fixed issue in
set_labels()for character vectors with numeric char-values that are larger than9.
sjlabelled 1.1.1
CRAN release: 2019-09-13
Changes to functions
- The
read_*()-functions get adrop.labels-argument, which - ifTRUE- automatically callsdrop_labels()on the imported dataset. -
read_data()is a shortcut that calls one of theread_*()-functions, depending on the file extension.
Bug fixes
- Fix issue in
as_label()to prevent replacement recycling when labels were numeric. - Fix issues with saving character vectors to SPSS files.
sjlabelled 1.1.0
CRAN release: 2019-06-06
New functions
-
remove_label(), to remove variable labels (and preserve value labels).
Changes to functions
convert_case() gets a verbose-argument to toggle warnings and messages on or off.
sjlabelled 1.0.17
CRAN release: 2019-03-10
New functions
- Re-implement
set_na(), to define (labelled)NA-values in a vector.
Changes to functions
-
as_label()gets akeep.labels-argument. With this, users can easily convert vector to factors and vice versa, preserving label-attributes.
Bug fixes
- Fixed bug with argument
use.labelsinas_numeric().
sjlabelled 1.0.16
CRAN release: 2019-01-10
General
- Started adding test-units.
- Minor code revisions to avoid errors during CRAN check for current devel-versions of R.
New functions
-
val_labels()as counterpart tovar_labels(), to set value labels, with support for quasi-quotation (see Examples).
Changes to functions
-
var_labels()now supports quasi-quotation (see Examples).
sjlabelled 1.0.15
CRAN release: 2018-11-22
Bug fixes
- Fix issue in
get_term_labels()that returned wrong object names for factors where factor levels did start with “1”.
sjlabelled 1.0.14
CRAN release: 2018-09-12
Bug fixes
- Fix bug in
var_labels(), where non-existing columns may lead to wrong labelling.
sjlabelled 1.0.13
CRAN release: 2018-08-11
Changes to functions
-
copy_labels()now also copy labels even if columns in subsetted and original data frame do not completely match. - Arguments
include.non.labelledandinclude.valuesinget_labels()are renamed to shorter versionsnon.labelledandvalues.include.non.labelledandinclude.valueswill become softly deprecated. - The
read_*()-functions get averbose-argument, to show or hide the progressbar when imported datasets are converted.
sjlabelled 1.0.12
CRAN release: 2018-07-08
General
-
get_dv_labels()andget_term_labels()now support clmm-objects (package ordinal) and stanmvreg-objects (package rstanarm). -
read_spss()gets aenc-argument for character encoding, which is now supported since haven 1.1.2. -
get_term_labels()now returnsNULLfor unsupported models, instead of giving an error. -
get_dv_labels()now returns a default string for unsupported models, instead of giving an error.
sjlabelled 1.0.11
CRAN release: 2018-06-06
General
-
as_labelled()now corrects inconsistent types between labels and variable values.
Changes to functions
-
get_dv_labels()gets amulti.resp-argument to return each label of a multivariate response model (only for brmsfit objects). -
get_label()now also returns name-attribute for empty labels ifxwas a data.frame.
sjlabelled 1.0.9
CRAN release: 2018-04-24
General
- Deprecated
set_note()andget_note(), because there is already an R base function for this purpose:comment(). - Improved performance of functions, at the cost of removing support for the foreign package. sjlabelled now only supports labelled data from package haven.
Changes to functions
-
get_term_labels()gets aprefix-argument to prefix the returned labels of categorical variable either with the related variable name or label.
Bug fixes
- Fix issues with retrieving incorrect labels from
get_term_labels()for models that used unlabelled data in combination with other contrasts than the default option. -
get_dv_labels()no longer returns"NULL"for multivariate-response-models fitted with brms.
sjlabelled 1.0.7
CRAN release: 2018-01-31
General
- Cross references from
dplyr::select_helperswere updated totidyselect::select_helpers. - Replace deprecated arguments in
convert_case()from call to package snakecase
sjlabelled 1.0.6
CRAN release: 2018-01-11
Changes to functions
-
get_dv_labels()andget_term_labels()now supportclm-objects from package ordinal,polr-objects from package MASS andZelig-relogit-objects from package Zelig. -
get_dv_labels()andget_term_labels()get a...-argument to pass down further arguments tosnakecase::to_any_case(). -
convert_case()is now exported, for usage in other packages as well. - Remove
protect-argument from internal case conversion (affectsget_term_labels()andget_dv_labels()), in preparation for forthcoming snakecase-package update.
sjlabelled 1.0.5
CRAN release: 2017-11-09
General
- Remove unnecessary imports.
- Revised
lbl_df()due to changes in the internals oftibble::trunc_mat().
New functions
-
as_factor()to convert labelled vectors into factors, preserving labels.
Changes to functions
-
get_dv_labels()now supportsbrmsfit-objects from packagebrms.
sjlabelled 1.0.4
CRAN release: 2017-10-08
Changes to functions
-
get_term_labels()now includes variable names for factors with numeric factor levels only (and not only return the numeric level as term label).
Bug fixes
- Fixed bug for
as_label(), whenxwas a character vector and argumentdrop.levelswasTRUE. - Fixed issue for lme and gls objects in
get_term_labels()andget_dv_labels().
sjlabelled 1.0.2
CRAN release: 2017-09-11
General
- Minor fix to avoid warning when using
as_numeric().
Changes to functions
-
get_label(),get_term_labels()andget_dv_labels()get acase-argument, to convert labels into any case, using the snakecase-package.
sjlabelled 1.0.1
CRAN release: 2017-07-07
New functions
-
get_term_labels()andget_dv_labels()to retrieve term labels from regression models.
Changes to functions
-
as_numeric()gets ause.labels-argument to use value labels as new values if these are numeric.
