Skip to content
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

apa_print() cannot parse binom.test() output #576

Closed
crsh opened this issue Jan 4, 2024 · 0 comments
Closed

apa_print() cannot parse binom.test() output #576

crsh opened this issue Jan 4, 2024 · 0 comments
Labels

Comments

@crsh
Copy link
Owner

crsh commented Jan 4, 2024

Describe the bug
The ouput of binom.test() can no longer be processed by apa_print() because the lookup tables cannot deal with the names pulled from the column names attributes.

To Reproduce

binom.test(10, 20) |>
  papaja::apa_print()
$estimate
NULL

$statistic
NULL

$full_result
NULL

$table
A data.frame with 2 labelled columns:

      conf.int p.value
1 [0.27, 0.73]  > .999

conf.int: 95\\% CI 
p.value : $p$ 
attr(,"class")
[1] "apa_results" "list"       
Warnmeldung:
In canonize(y) :
  Some columns could not be renamed: 'number.of.successes', 'number.of.trials', 'probability.of.success'
This implies that your output object was not fully understood by `apa_print()`.
  Therefore, be careful when using its output. Moreover, please visit https://github.com/crsh/papaja/issues and
  file an issue together with the code that generated the output object. In doing so, you help us to fully
  support the type of analysis you just conducted and make papaja a little bit better.

Expected behavior
The function should return a complete apa_results-object.

Any idea what's going on here, @mariusbarth?

@crsh crsh added the bug label Jan 4, 2024
@crsh crsh closed this as completed in 4b1c325 Jan 10, 2024
crsh added a commit that referenced this issue Jan 10, 2024
Adds apa_print()-support for binom.test()-results. Fixes #576
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant