hubverse-org / hubEnsembles

Ensemble methods for combining hub model outputs.
https://hubverse-org.github.io/hubEnsembles/
Other
5 stars 2 forks source link

convert non-numeric quantile levels to numeric before calling distfromq #32

Closed elray1 closed 10 months ago

elray1 commented 10 months ago

I thought about adding functionality to distfromq to handle non-numeric values, but I actually think maybe it's the right thing for that package to throw errors (though I filed an issue there to make the error it generates clearer). For example, qnorm errors out if you pass it a string and it seems like we should expect similar behavior from distfromq.

> qnorm("0.1")
Error in qnorm("0.1") : Non-numeric argument to mathematical function