Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

resp2binary

Convert Responses to Binary Data


Description

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

Usage

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

Examples

data(test)
data(key)

testk <- addkey(test, keydata = key)

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

fsia

Import and Analysis of OMR Data from FormScanner

v1.1.1
GPL-3
Authors
Michela Battauz
Initial release
2017-06-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.