Repository navigation
-
collapse now bundles its agent skill,
collapse-r, ininst/skills/. With btw, it is discovered automatically when collapse is attached, or can be installed withbtw::btw_skill_install_package("collapse"). Thanks @arthurgailes (#882). -
flm()now throws an informative error ifXis an S4 object (e.g. a sparse matrix from the Matrix package) andmethodis not"qr"or"chol", instead of failing with a cryptic error. The check is a singleisS4()call and adds negligible overhead. Thanks @tyner for suggesting (#887). -
Fixed a bug in
na_omit()andmissing_cases()where supplyingcolson a single-row matrix dropped it to a vector, causingna_omit()to error andmissing_cases()to return one value per selected column. Thanks @dbetebenner for reporting (#886). -
Fixed a bug in weighted
fmedian()andfnth()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).