nm {moodler}R Documentation

nm

Description

This function generates the code for a numerical CLOZE question

Usage

nm(x, w, eps, ndigits, pts = 1)

Arguments

x

vector of values

w

list of weights

eps

vector of precision

ndigits

answers have to be rounded to ndigits, otherwise gives partial credit. Overrides eps

pts

how many points is question worth?

Examples

nm(50)
nm(c(50, 40), w=c(100, 50))
nm(c(50, 40), w=c(100, 50), ndigits=0) #for 100% answer has to be rounded to nearest integer

[Package moodler version 0.1.1 Index]