Learn R Programming

moodlequizR (version 2.1.1)

nm: nm

Description

This function generates the code for a numerical CLOZE question

Usage

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

Value

a character vector with the code for a CLOZE question

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

Run this code
nm(50)
nm(c(50, 40), w=c(100, 50))

Run the code above in your browser using DataLab