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

resp2scores

Convert Responses to Scores


Description

Assigns a weight to the responses.

Usage

resp2scores(obj, columns)

Arguments

obj

An object containing the data imported by function read.formscanner and weights added by function addweights.

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 scored responses.

Author(s)

Michela Battauz

See Also

Examples

data(test)
data(key)
data(weights)
data(weights_multiple)

testk <- addkey(test, keydata = key)
testw <- addweights(testk, weightsdata = weights)
testwm <- addweights(test, weightsdata = weights_multiple)

# ASSIGN WEIGHTS TO RESPONSES
resps <- resp2scores(obj = testw, col =2:41)
resps[, 2:5]

# ASSIGN WEIGHTS TO RESPONSES (MULTIPLE WEIGHTS)
resps <- resp2scores(obj = testwm, col =2:41)
resps[, 2:5]

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.