Assigns a weight to the responses.
An object containing the data imported by function
A vector containing which columns to use. Columns can be specified by name or number.
The data frame
data contained in
columns replaced by scored responses.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
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]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.