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

Usage Arguments Value Examples

View source: R/pase.R

Usage

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

Arguments

x

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

opts

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

col

Column number to be analized.

kc

keep coments in the options cell

skipTo

Number of lines to skip after col (non-inclusive).

...

Further arguments passed to setEmptyCellsValue

shiftFlag

The opts which means skip.

Value

corrected x

Examples

1
2
3
4
5
6
7
8
9
xe <- matrix(1:20, nrow = 5, ncol = 4)
xe[1, 1] <- NA
xe[2, 2] <- NA
xe[2, 3] <- NA
xe[3, 2] <- NA
print(xe)
pase(x = xe, opts = 1:5, skipFlag = 4,
     col = 1, skipTo = 3, kc = FALSE,
     fw = -999, ef = 2)

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