moodle.table | R Documentation |
This function takes a data frame or vector and generates the html code to display it in a moodle quiz
moodle.table(x, DoRowNames = FALSE, DoBorder = FALSE, ncols = 10)
x |
df or vector |
DoRowNames |
print row names? |
DoBorder |
print border? |
ncols |
for vectors, how many items per row? |
A character vector with html code
moodle.table(round(rnorm(50), 1))
moodle.table(mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.