resp2binary: Convert Responses to Binary Data

Description Usage Arguments Value Author(s) See Also Examples

Description

Converts data to binary (correct/incorrect) responses, according to the key.

Usage

1
resp2binary(obj, columns)

Arguments

obj

An object containing the data imported by function read.formscanner and the key added by function addkey.

columns

A vector containing which columns to use. Columns can be specified by name or number.

Value

The data frame data contained in obj with columns replaced by binary data.

Author(s)

Michela Battauz

See Also

read.formscanner

Examples

1
2
3
4
5
6
7
data(test)
data(key)

testk <- addkey(test, keydata = key)

resp01 <- resp2binary(obj = testk, col = 2:41)
resp01


Search within the fsia package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.