Skip to content

Releases: larmarange/labelled

labelled 2.16.0

23 Oct 08:58

Choose a tag to compare

New features

  • new function to_gt() for converting the result of look_for() into a nicely
    formatted table (#189)
  • new functions dictionary_to_variable_labels() and
    dictionary_to_value_labels() to convert a dictionary data frame into a list
    of variable / value labels (#183)
  • new .overwrite argument for set_variable_labels() and
    set_value_labels() (#183)
  • new sep argument for names_prefixed_by_values()
  • new arguments (sep_value_labels and sep_other) for
    convert_list_columns_to_character() and lookfor_to_long_format()

Bug fix

  • copy_labels() is now less restrictive and accept tibble with list
    columns (#187)

labelled 2.15.0

16 Sep 12:47

Choose a tag to compare

New features

  • {labelled} functions are now compatible with survey design objects created
    with the {survey} package (#174)
  • argument user_na_to_na has been added to to_factor.data.frame() (#178)

labelled 2.14.1

07 May 07:53

Choose a tag to compare

Bug fix

  • fix a bug introduced in 2.14.0 in set_variable_labels() when using .labels
    argument (#171)

labelled 2.14.0

08 Jan 08:58

Choose a tag to compare

New features

  • in update_variable_labels_with(), it is now possible to access the variable
    name inside .fn by using names() (#163)
  • var_label() gets new options "na" and "empty" for null_action

Improvements

  • systematic use of {cli} for errors, warnings and messages (#167)

labelled 2.13.0

23 Apr 17:00

Choose a tag to compare

New features

  • add a null_action argument to val_labels(), val_label() and a
    .null_action argument to set_value_labels(), add_value_labels() and
    remove_value_labels() (#145)
  • new functions update_variable_labels_with() and update_value_labels_with()
    allowing to update variable/value labels with a custom function (#153)

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

21 Jun 14:26

Choose a tag to compare

New features

  • support of variable labels for packed columns, see dedicated vignette (#142)
  • new helpers label_attribute(), get_label_attribute() and
    set_label_attribute() to manipulate the "label" attribute on any
    object (#142)
  • new functions get_variable_labels(), get_value_labels(), get_na_values()
    and get_na_range() identical to var_label(), val_labels(), na_values()
    and na_range(), respectively
  • to_character() method for data frames (#140)

labelled 2.11.0

12 Apr 09:28

Choose a tag to compare

Improvements

  • set_value_labels(), add_value_labels(), remove_value_labels(),
    set_variable_labels(), set_na_range() and set_na_values() can now be
    applied on a vector (#126)
  • new argument null_action for var_label() when applied on a
    data frame (#131)
  • look_for() now returns "missing" (number of NAs) by default (#133)

Bug fixes

  • bug fix in print.look_for() (#135)
  • bug fix in unlabelled() for classic vectors, now remained unchanged (#137)

labelled 2.10.0

14 Sep 13:10

Choose a tag to compare

  • look_for() now accepts survey objects (#121)

labelled 2.9.1

06 May 15:20

Choose a tag to compare

  • improved error messages for missing variable names (#118, @ajb5d)
  • better implementation of look_for() when no keyword is provided (#116)
  • bug fix in user_na_to_tagged_na() (#114)

labelled 2.9.0

02 Nov 08:31

Choose a tag to compare

look_for() improvements:

  • new function look_for_and_select() (#87)
  • look_for() can now search within factor levels and value labels (#104)

improvements for tagged NAs:

  • better printing of value labels (#89)
  • new functions user_na_to_tagged_na(), tagged_na_to_user_na() and
    tagged_na_to_regular_na()
  • new option explicit_tagged_na in to_factor() and to_character()
  • new functions unique_tagged_na(), duplicated_tagged_na(),
    order_tagged_na(), sort_tagged_na() (#90, #91)

other improvements:

  • new functions is_user_na() and is_regular_na()
  • new set of unit tests (#99)
  • trying to apply a value label, na_range() or na_values() to a factor
    will now produce an error
  • bug fix in foreign_to_labelled() for Stata files (#100)