powered by
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)
A character vector with html code
df or vector
print row names?
print border?
for vectors, how many items per row?
moodle.table(round(rnorm(50), 1)) moodle.table(mtcars)
Run the code above in your browser using DataLab