WillemSleegers / tidystats-v0.3

R package to produce a tidy output file of statistical models.
Other
22 stars 2 forks source link

Report does not work for self-created statistics #54

Closed mjbsp closed 6 years ago

mjbsp commented 6 years ago

I created my own code to save results of Cohen d from effsize package. I tried to use report to report them. Relevant results tibble, Rmd code, and error message included.

screen shot 2017-11-25 at 09 51 52 screen shot 2017-11-25 at 09 52 06 screen shot 2017-11-25 at 09 52 23

A general method for making custom functions to save and then report stats would be useful.

WillemSleegers commented 6 years ago

I improved the report() functions and it should support that now.

If you install the package directly from github (using devtools), then you should be able to test it out. Can you let me know whether it works?

mjbsp commented 6 years ago

It did not work, but there is a new error message. capture

Note that this code does work

`r filter(results$btn.d.maintext, statistic == "d")`
mjbsp commented 6 years ago

My prior comment forgot the quotes about the d, but even after adding it did not work as expected.

WillemSleegers commented 6 years ago

Should work now. =)

mjbsp commented 6 years ago

Agreed. It works now. Thanks!