tidyfun / tf

S3 classes and methods for tidy functional data
https://tidyfun.github.io/tf/
GNU Affero General Public License v3.0
6 stars 2 forks source link

Move from formula to anonymous functions for purrr .f arg #48

Closed m-muecke closed 5 months ago

m-muecke commented 6 months ago

I would suggest moving from the formula style to anonymous functions since the formula syntax is not recommended unless using old R versions. I would personally vote for the lambda syntax since it's shorter, personal preference, and since it's used in the docs of tidyverse packages.

https://purrr.tidyverse.org/reference/map.html

Deprecation notes for 1.0.0: https://www.tidyverse.org/blog/2022/12/purrr-1-0-0/#documentation

fabian-s commented 5 months ago

fully agree