esc icon indicating copy to clipboard operation
esc copied to clipboard

Warn/fail if multiple parameters are passed to esc:::convert_to_d?

Open LukasWallrich opened this issue 5 months ago • 0 comments

Thanks for this handy package! I was trying to use it programmatically, and constructed a call to convert multiple effect size types at once - which then results in unexpected / unpredictable output. There is probably no meaningful way to do this in one call, but then an error would be great.

library(esc)
pearsons_r(d = 1)
#> [1] 0.4472136
# Multiple arguments result in least expected behaviour - 
# where later arguments override earlier ones.
pearsons_r(d = 1, or = 2)
#> [1] 0.1876806

Created on 2024-02-14 with reprex v2.0.2

LukasWallrich avatar Feb 14 '24 18:02 LukasWallrich