Closed m-muecke closed 14 hours ago
Closes: https://github.com/tidyfun/tf/issues/138
Note: Added a workaround for abs(floor(log10(resolution))) for integer values since I'm not sure this behaves like the desired behaviour:
abs(floor(log10(resolution)))
abs(floor(log10(1:100))) #> [1] 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 #> [38] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 #> [75] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 abs(floor(log10(c(0.1, 0.01, 0.001, 1.001)))) #> [1] 1 2 3 0
Created on 2024-11-21 with reprex v2.1.1
Closes: https://github.com/tidyfun/tf/issues/138
Note: Added a workaround for
abs(floor(log10(resolution)))
for integer values since I'm not sure this behaves like the desired behaviour:Created on 2024-11-21 with reprex v2.1.1