Skip to content

Releases: ccsarapas/lighthouse

lighthouse 0.7.3

18 Sep 20:03
afad671
Compare
Choose a tag to compare

Bug fixes

  • fiscal_year(), ffy(), and sfy_il() are now vectorized (fixes #23).

  • summary_table() now accepts functions that do not have an na.rm or ... argument, which previously caused an error.

  • strftime_no_lead():

    • now returns results with default formatting when format is unspecified (fixes #21).
    • now supports the "%OSn" conversion specification. This returns seconds with specified number of decimal places, up to 6; e.g., "%OS3" would return seconds with 3 decimals places.
  • summary_report():

    • no longer issues a deprecation warning related to using !!! on a single language object (fixes #19).
    • now returns consistent column types in output tibble (fixes # 26).
    • setting .missing_label no longer throws errors in some situations (fixes #26).
    • now treats dates and datetimes as nominal by default, and will error on attempts to treat dates or datetimes as continuous or binary.

New functions

  • ffyq() and sfyq_il() return the federal fiscal year and quarter or Illinois state fiscal year and quarter for a given date. Return format can be set using the type parameter, defaulting to numeric YYYY.Q format. These functions wrap lubridate::quarter() and complement the existing lighthouse functions ffy() and sfy_il().

New functionality

  • summary_table() has new arguments .cols_group_glue and .cols_group_order to control column names and order when .cols_group_by is set. These are replacements for .cols_group_opts, which is deprecated and will be removed in a future release.

lighthouse 0.7.2

17 Jul 16:30
4db9e66
Compare
Choose a tag to compare

Bug fixes

  • open_file(), open_location(), and in_excel() now work on MacOS (fixes #17).

Changes to row-wise aggregation functions

  • Added psum() and pmean():

    • These compute "parallel" or row-wise sums or means, analogous to base::pmax() and base::pmin().

    • psum() deprecates row_sums_spss(). (psum() is a clearer and more consistent name, as its behavior is closer to that of pmin() / pmax() than rowSums().) Note that psum() has na.rm = FALSE by default whereas row_sums_spss() defaulted to na.rm = TRUE.

  • Added psum_across() and pmean_across():

    • These are implementations of psum() and pmean() that take tidyselect expressions, complementing pmin_across() and pmax_across().

    • psum_across() replaces row_sums_across(), which was introduced in 0.7.0 but is now removed (closes #16).

  • All p*_across() functions now accept tidyselect expressions via ... rather than cols. This makes it easier to include multiple tidyselect expressions, e.g., psum_across(var1:var9, starts_with("An")).

  • Updated documentation for psum(), psum_across(), and friends. In particular, see the Details section of psum_across(), which contrasts use cases for psum() vs. psum_across().

Lifecycle changes

  • coerce_na_range() is deprecated in favor of na_if_range().

Other changes

  • Added a hex logo!

lighthouse 0.7.1

16 Jul 21:17
fa18520
Compare
Choose a tag to compare
  • strftime_no_lead() now removes leading zeroes only from specified components of date-times (fixes #14).