Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
ci.coords returns a "ret" error for input = "threshold" #57
Describe the bug
Gives the error
This is because you have an implied "threshold" in the default value of
This will work right away, setting the return value without threshold:
The threshold itself won't vary.
However in this case it should indeed be possible to return a (constant) threshold. I will investigate why it isn't the case.
In addition the default value should probably be able to auto-detect whether 'threshold' can be computed.
Thanks! Your solution works for me. I'm still a little confused, since a threshold is given by the user, what does it mean for the function to return a threshold, other than just show the input value? Shouldn't ret=c("se", "sp") be the default if the input is a threshold?