pase1: Verify a multiple choice question with optional answer. See...

Usage Arguments Examples

View source: R/pase1.R

Usage

1
2
pase1(x, opts, skipFlag, ec = NA, fw = -99.009, fc = -1111, col = 1,
  kc = FALSE, ...)

Arguments

x

table (data.frame/matrix) from data comes.

opts

Posible valid, non-empty values for the column col to be analyzed.

ec

filling symbol for other cases as "doesn't apply" or empty

col

Integer. Column number (after the opts column) to be analized.

kc

keep content in column 2 in case the opts (1st column) cell has a valid opts.

...

Further arguments passed to setEmptyCellsValue

shiftFlag

The opts which means skip.

Examples

1
2
3
4
5
6
7
8
xe <- matrix(1:10, nrow = 5, ncol = 2)
xe[1, 1] <- NA
xe[3, 1] <- 2
xe[3, 2] <- NA
print(xe)
pase1(x = xe, opts = 1:5, skipFlag = 2,
     col = 1, ec = NA, kc = FALSE,
     fw = -99.009, ef = 4)

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