sjlabelled 1.0.18 Unreleased

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 2019-03-10

General

  • Reduce package dependencies.
  • New package-vignette on quasiquotation.

New functions

  • Re-implement set_na(), to define (labelled) NA-values in a vector.

Changes to functions

  • as_label() gets a keep.labels-argument. With this, users can easily convert vector to factors and vice versa, preserving label-attributes.

Bug fixes

sjlabelled 1.0.16 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

Changes to functions

sjlabelled 1.0.15 2018-11-22

General

  • Update code to the new class-attribute haven_labelled from the haven-package.

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 2018-09-12

General

  • Reduce package dependencies.

Bug fixes

  • Fix bug in var_labels(), where non-existing columns may lead to wrong labelling.

sjlabelled 1.0.13 2018-08-11

General

  • Removed defuncted functions.

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.labelled and include.values in get_labels() are renamed to shorter versions non.labelled and values. include.non.labelled and include.values will become softly deprecated.
  • The read_*()-functions get a verbose-argument, to show or hide the progressbar when imported datasets are converted.

Bug fixes

  • Due to changes in the broom and lmerTest packages, tidiers did no longer work for lmerModLmerTest objects.

sjlabelled 1.0.12 2018-07-08

General

  • get_dv_labels() and get_term_labels() now support clmm-objects (package ordinal) and stanmvreg-objects (package rstanarm).
  • read_spss() gets a enc-argument for character encoding, which is now supported since haven 1.1.2.
  • get_term_labels() now returns NULL for 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 2018-06-06

General

  • as_labelled() now corrects inconsistent types between labels and variable values.

Changes to functions

  • get_dv_labels() gets a multi.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 if x was a data.frame.

Bug fixes

  • write_*()-functions should now properly set labels for negative values.

sjlabelled 1.0.9 2018-04-24

General

  • Deprecated set_note() and get_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 a prefix-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.8 2018-02-26

General

  • Removed lbl_df(), because printing tibbles now depends on pkg pillar and was revised substantially, so maintainace of lbl_df() is too extensive.

sjlabelled 1.0.7 2018-01-31

General

sjlabelled 1.0.6 2018-01-11

Changes to functions

sjlabelled 1.0.5 2017-11-09

General

  • Remove unnecessary imports.
  • Revised lbl_df() due to changes in the internals of tibble::trunc_mat().

New functions

  • as_factor() to convert labelled vectors into factors, preserving labels.

Changes to functions

sjlabelled 1.0.4 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

sjlabelled 1.0.3 2017-09-19

General

  • Changed package imports, so sjlabelled no longer requires R version 3.3.3 or higher.

sjlabelled 1.0.2 2017-09-11

General

Changes to functions

sjlabelled 1.0.1 2017-07-07

General

  • Removed function ‘var_rename()’, which is in pkg ‘sjmisc’.

New functions

Changes to functions

  • as_numeric() gets a use.labels-argument to use value labels as new values if these are numeric.

sjlabelled 1.0.0 2017-06-12

General

  • Initial release. All labelled data utility functions from package sjmisc have been moved to this package, which is now dedicated to tools for working with labelled data.