These functions create two tables that can be used for the grading of the student's papers.
create_minreq_table(repro, n_tab, n_plot_kinds, n_plots, n_stat)create_grading_table(p_text, p_tab, p_plot, p_code, p_stat)
both functions return an object of class kableExtra
.
logical, is the paper reproducible?
integer, number of tables
integer, number of different kinds of plots
integer, number of plots
integer, number of statistical computations
numeric between 0 and 3, points given for the text
numeric between 0 and 3, points given for the tables
numeric between 0 and 5, points given for the plots
numeric between 0 and 5, points given for the code
numeric between 0 and 5, points given for the statistic computations
The tables are created using knitr::kable()
and kableExtra::kableExtra
is
used for additional styling.
create_minreq_table()
creates a table that checks that the minimal requirements
are satisfied:
the paper must be reproducible
there must be at least one table and two kinds of plots
there must be at least 5 plots and tables
there must be at least two statistical computations
The table lists for each of those requirement whether it is satisfied or not.
create_grading_table()
creates a table that gives grades in percent for
each of five categories:
Text
Tables
Plots
Code
Statistical computations
In each category, up to five points may be awarded. The last row of the table gives the percentage over all categories.