New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
printp(x) output is inconsistent when x has values greater & smaller than .001 #313
Comments
Hi Matti, thanks for the suggestion. That makes sense to me. I think, it would even make sense to add this to @mariusbarth, what do you think about this? This would be a more general alternative to your proposed |
Great, yes it looks like you'd want to put it in |
- defaults to `FALSE` - is implemented by calling internal function `add_equals()`
@mariusbarth, you worked on this right? Could you summarize how you solved this (maybe in reference to the above example)? |
Sure! On the development branch, I basically implemented what Matti suggested: Both |
Currently, if you run
printp(x)
onx
that contains values both above and below the threshold of 0.001, you get inconsistent output values, some of which contain an operator and some don't. This is especially problematic if you're e.g. constructing a variable that has p values from several tests that you'd like to report together (in a table or in text).Created on 2019-09-05 by the reprex package (v0.3.0.9000)
See the commit here.
An additional benefit of including those extra two lines of code in
printp()
is that you could remove quite a bit of code that does the same in thing in variousapa_print*
methods (e.g. here) and instead replace them withprintp(p, add_eq = TRUE)
The text was updated successfully, but these errors were encountered: