Learn R Programming

moodlequizR (version 2.1.1)

qamatrix: 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)

Value

a list for the qmc and amc portions of genquiz

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

Examples

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

Run the code above in your browser using DataLab