moodle.table {moodlequizR}R Documentation

moodle.table

Description

This function takes a data frame or vector and generates the html code to display it in a moodle quiz

Usage

moodle.table(x, DoRowNames = FALSE, DoBorder = FALSE, ncols = 10)

Arguments

x

df or vector

DoRowNames

print row names?

DoBorder

print border?

ncols

for vectors, how many items per row?

Value

A character vector with html code

Examples

moodle.table(round(rnorm(50), 1))
moodle.table(mtcars)

[Package moodlequizR version 2.1.1 Index]