Learn R Programming

moodlequizR (version 2.1.1)

moodle.table: 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)

Value

A character vector with html code

Arguments

x

df or vector

DoRowNames

print row names?

DoBorder

print border?

ncols

for vectors, how many items per row?

Examples

Run this code
moodle.table(round(rnorm(50), 1))
moodle.table(mtcars)

Run the code above in your browser using DataLab