Skip to content

collapse version 2.1.9

Latest

Choose a tag to compare

@SebKrantz SebKrantz released this 09 Nov 03:48
0a16f08
  • collapse now bundles its agent skill, collapse-r, in inst/skills/. With btw, it is discovered automatically when collapse is attached, or can be installed with btw::btw_skill_install_package("collapse"). Thanks @arthurgailes (#882).

  • flm() now throws an informative error if X is an S4 object (e.g. a sparse matrix from the Matrix package) and method is not "qr" or "chol", instead of failing with a cryptic error. The check is a single isS4() call and adds negligible overhead. Thanks @tyner for suggesting (#887).

  • Fixed a bug in na_omit() and missing_cases() where supplying cols on a single-row matrix dropped it to a vector, causing na_omit() to error and missing_cases() to return one value per selected column. Thanks @dbetebenner for reporting (#886).

  • Fixed a bug in weighted fmedian() and fnth() where the tie tolerance was an absolute epsilon. With an even number of observations and equal weights, rescaling the weights could change the result: fmedian(c(10, 20, 30, 40, 50, 60), w = rep(0.0003, 6)) returned 35, while the same weights multiplied by 1000 returned 40. The comparison is now relative to the target weight sum. Thanks @s3rdia for reporting (#883).