boxhist2: Univariate Exploration of a CSV File (Flexible Formatting)
Univariate numeric data for download in a CSV file (comma-separated values) need to be assessed using quantiles (three numeric items) and exploratory graphics (three single-choice items). Data are drawn randomly from a suitable data-generating process so that the single-choice items are either about correct or clearly wrong. The six items are embedded into the exercise using "##ANSWERi##" tags for somewhat improved layout.
Random numbers, text blocks, and data file
Verbatim R input/output:
Raw: (1 random version)
(Note that the HTML output contains mathematical equations in MathML, rendered by MathJax using ‘mathjax = TRUE’. Instead it is also possible to use ‘converter = “pandoc-mathjax”’ so that LaTeX equations are rendered by MathJax directly.)
library("exams") set.seed(403) exams2html("boxhist2.Rmd", mathjax = TRUE) set.seed(403) exams2pdf("boxhist2.Rmd") set.seed(403) exams2html("boxhist2.Rnw", mathjax = TRUE) set.seed(403) exams2pdf("boxhist2.Rnw")