maq: Check if all the answers are according to the optios...

Usage Arguments Details Value Examples

View source: R/maq.R

Usage

1
maq(x, dupCheck = TRUE, ...)

Arguments

x

A matrix of data.frame to be checked if it contains any of opts in mcq.

dupCheck

if TRUE (default), remove (set to NA) duplicated value row-wisely.

...

further parameters passed to mcq

Details

The name stands for 'multiple answer questions'

Value

corrected vector

Examples

1
2
3
4
5
xe <- data.frame(x = c(1:4, 4), y = c(2:5,4))
print(xe)
maq(x = xe, opts = 3:4)
maq(x = xe, opts = 3:4, fw = NA, inv_fw = NULL)
maq(x = xe, opts = 3:4, fw = NA, inv_fw = NA)

mathphysmx/cleanTable documentation built on May 29, 2019, 2:51 p.m.