Skip to contents

labelled (development version)

labelled 2.13.0

CRAN release: 2024-04-23

New features

Bug fix

  • avoid an error with print.look_for() when console pane is physically shrunk too small (#148)
  • fix in recode.haven_labelled() when .x contains NA and .combine_value_labels = TRUE (#151)
  • produce an error when trying to assign value labels to a Date vector (#156)

labelled 2.12.0

CRAN release: 2023-06-21

New features

labelled 2.11.0

CRAN release: 2023-04-11

Improvements

Bug fixes

labelled 2.10.0

CRAN release: 2022-09-14

labelled 2.9.1

CRAN release: 2022-05-05

labelled 2.9.0

CRAN release: 2021-10-29

look_for() improvements:

improvements for tagged NAs:

other improvements:

labelled 2.8.0

CRAN release: 2021-03-08

  • new helper recode_if() for recoding values based on condition, variable and value labels being preserved (#82)
  • look_for() could be time consuming for big data frames. Now, by default, only basic details of each variable are computed. You can compute all details with details = "full" (#77)
  • printing of look_for() results has been updated and do not rely anymore on pillar (#85)
  • to_labelled() can properly manage factors whose levels are coded as “[code] level”, as produced by to_factor(levels = "prefixed") (#74 @courtiol)
  • new function is_prefixed() to check if a factor is prefixed
  • bug fix for na_range<- and na_values<- when applied to a data.frame (#80)

labelled 2.7.0

CRAN release: 2020-09-21

labelled 2.6.0

CRAN release: 2020-08-27

labelled 2.5.0

CRAN release: 2020-06-17

labelled 2.4.0

CRAN release: 2020-05-25

  • 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 version of haven

labelled 2.3.1

CRAN release: 2020-04-29

labelled 2.3.0

CRAN release: 2020-04-27

labelled 2.2.2

CRAN release: 2020-02-03

labelled 2.2.1

CRAN release: 2019-05-26

labelled 2.2.0

CRAN release: 2019-04-16

labelled 2.1.0

CRAN release: 2019-02-25

  • 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 in to_factor(), to be used when strict = 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() and na_range() have been updated accordingly (#37)

labelled 2.0.2

CRAN release: 2019-01-18

labelled 2.0.1

CRAN release: 2018-11-25

labelled 2.0.0

CRAN release: 2018-11-23

BREAKING CHANGE

  • Following version 2.0.0 of haven, labelled() and labelled_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 by Hmisc.
  • A new function update_labelled() could be used to convert data imported with an older version of haven to the new classes.

Other changes

labelled 1.1.0

CRAN release: 2018-05-24

labelled 1.0.1

CRAN release: 2017-12-19

  • bug fix: argument drop_unused_labels could now be used with to_factor.data.frame()
  • new labels argument for to_labelled() method when applied to a factor
  • bug fix: appropriate column names with data.frame (#20)

labelled 1.0.0

CRAN release: 2016-11-20

labelled 0.2.3

CRAN release: 2016-06-21

labelled 0.2.2

CRAN release: 2016-06-15

labelled 0.2.0