Releases: ccsarapas/lighthouse
lighthouse 0.7.3
Bug fixes
-
fiscal_year()
,ffy()
, andsfy_il()
are now vectorized (fixes #23). -
summary_table()
now accepts functions that do not have anna.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.
- now returns results with default formatting when
-
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.
- no longer issues a deprecation warning related to using
New functions
ffyq()
andsfyq_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 thetype
parameter, defaulting to numericYYYY.Q
format. These functions wraplubridate::quarter()
and complement the existing lighthouse functionsffy()
andsfy_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
Bug fixes
open_file()
,open_location()
, andin_excel()
now work on MacOS (fixes #17).
Changes to row-wise aggregation functions
-
Added
psum()
andpmean()
:-
These compute "parallel" or row-wise sums or means, analogous to
base::pmax()
andbase::pmin()
. -
psum()
deprecatesrow_sums_spss()
. (psum()
is a clearer and more consistent name, as its behavior is closer to that ofpmin()
/pmax()
thanrowSums()
.) Note thatpsum()
hasna.rm = FALSE
by default whereasrow_sums_spss()
defaulted tona.rm = TRUE
.
-
-
Added
psum_across()
andpmean_across()
:-
These are implementations of
psum()
andpmean()
that take tidyselect expressions, complementingpmin_across()
andpmax_across()
. -
psum_across()
replacesrow_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 thancols
. 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 ofpsum_across()
, which contrasts use cases forpsum()
vs.psum_across()
.
Lifecycle changes
coerce_na_range()
is deprecated in favor ofna_if_range()
.
Other changes
- Added a hex logo!
lighthouse 0.7.1
- strftime_no_lead() now removes leading zeroes only from specified components of date-times (fixes #14).