Better HN
topnewbestaskshowjobs
Log inSign up

torfason

1 karma · joined Dec 6, 2020 (5y ago) · 1 submissions

Submissions

comment 5y ago · link · parent

The zfit package is intended to address this issue, with the zlm() and comparable functions that are very thin wrappers around lm() and friends. The ony thing they do is flip the argument order so the data comes first, making exactly this use case much simpler. So you can do:

    cars %>% zlm(dist ~ speed)
(or now)

    cars |> zlm(dist ~ speed)
https://github.com/torfason/zfit