Skip to content

tidypolars 0.4.0

Compare
Choose a tag to compare
@etiennebacher etiennebacher released this 27 Nov 08:10

tidypolars requires polars >= 0.11.0.

Breaking changes

  • It is no longer possible to pass a list in rename().

New features

  • The argument with_string_cache in as_polars() now enables the string cache
    globally if set to TRUE (#54).

  • Better error message in filter() when comparing factors to strings while the
    string cache is disabled.

  • Basic support for strptime(). It is possible to use strptime(*, strict = FALSE)
    to not error when the parsing of some characters fails.

  • New argument .by in filter(), mutate(), and summarize(), and new
    argument by in the slice_*() functions. This allows to do operations on
    groups without using group_by() and ungroup(). See the
    dplyr vignette for
    more information (#59).

  • rename() now accepts unquoted names both old and new names.

  • Support fixed regexes in str_detect() (using fixed()) and in grepl()
    (using fixed = TRUE).

Bug fixes

  • Improve robustness of sequential expressions in mutate() and summarize()
    (i.e expressions that should be run one after the other because they depend on
    variables created in the same call) (#58).

  • relocate() now works correctly when .after = last_col().

  • All functions that work on grouped data now correctly restore the groups
    structure (#62).

Misc

  • Error messages coming from mutate(), summarize(), and filter() now give
    the right function call.

  • Faster tidy selection (#61).