Convert Responses to Binary Data
Converts data to binary (correct/incorrect) responses, according to the key.
resp2binary(obj, columns)
obj |
An object containing the data imported by function |
columns |
A vector containing which columns to use. Columns can be specified by name or number. |
The data frame data
contained in obj
with columns
replaced by binary data.
Michela Battauz
data(test) data(key) testk <- addkey(test, keydata = key) resp01 <- resp2binary(obj = testk, col = 2:41) resp01
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.