coords(r.s100b, c(0.51, 0.2), input = "threshold", ret = "specificity", drop = TRUE)
coords(r.s100b, "local maximas", input = "threshold", ret = "specificity", drop = TRUE)
Both return a matrix with 1 row. Note: this is tested in test-coords.R but the test is skipped as it fails.
The documentation only mentions dropping over length(x), but also doesn't state that it won't drop if length(ret) == 1. The doc should be either updated to mention not dropping over ret, or updated to mention to drop over ret and the code updated accordingly.
This however is an api change and too close for 1.14.
The text was updated successfully, but these errors were encountered: