HenrikBengtsson / matrixStats

R package: Methods that Apply to Rows and Columns of Matrices (and to Vectors)
https://cran.r-project.org/package=matrixStats
202 stars 33 forks source link

Naming support for `diff2()` #218

Closed yaccos closed 2 years ago

yaccos commented 2 years ago

As was pointed out in issue #210, diff2() still needed support for named arguments. In this pull request, I provide a solution to this problem. I could not see any other vector-based function in the matrixStats API where it makes sense to add naming support.