qamatrix {moodlequizR}R Documentation

qamatrix

Description

This function takes a matrix and generates the html code for questions and answers in a moodle quiz

Usage

qamatrix(tbl, points = 100, precision = 0, Border = 1, before, after)

Arguments

tbl

a matrix

points

Points for correct answers

precision

required

Border

should table have a border?

before

text that appears before question

after

text that appears after question

Value

a list for the qmc and amc portions of genquiz

Examples

p=matrix(1:6,2,3)
qamatrix(p)
qamatrix(p, c(100,80), c(0,0.1))

[Package moodlequizR version 2.1.1 Index]