You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug apa_num() options specified in apa_print(), like decimal.mark and gt1, don't apply to the whole the output, especially to the p-values.
To Reproduce
library(papaja)
model <- lm(Sepal.Length ~ Species, data = iris)
anova(model) |> apa_print(decimal.mark = ",", gt1 = TRUE)
Expected behavior
I want all leading zeros to be displayed and all decimal marks changed to a comma which isn't the case with e.g. p-values and F-ratios but works well in other parts of the output.
Additional context
Makes apa_print() nonadjustable for different languages' implementations of the APA style.
The text was updated successfully, but these errors were encountered:
Hi Jakub, thanks for raising the issue and providing an example. This is related to #506.
In some sense, this is beyond the scope of papaja and so there is currently no good way to adjust the type setting of all statistics. We support changes to the estimates because their typesetting depends on the outcome variable (e.g., leading zero, number of digits). That said, there is a mid- to long-term aim of abstracting the typesetting away and allowing users to specify their own reporting style. I should note, though, that there are several other big milestones with higher priority.
It is, however, straight forward to do what you need with a little bit of regex and knowledge of papaja internals:
See the vignette extending_apa_print for some additional information (vignette("extending_apa_print", package = "papaja"), note that you need to set build_vignettes = TRUE when installing papaja).
Describe the bug
apa_num()
options specified inapa_print()
, likedecimal.mark
andgt1
, don't apply to the whole the output, especially to the p-values.To Reproduce
Output
Expected behavior
I want all leading zeros to be displayed and all decimal marks changed to a comma which isn't the case with e.g. p-values and F-ratios but works well in other parts of the output.
Additional context
Makes
apa_print()
nonadjustable for different languages' implementations of the APA style.The text was updated successfully, but these errors were encountered: