getResponse is a helper function for extracting scale-wise response from a PROsetta_data object.

getResponse(d, scale_id = "all", person_id = FALSE)

Arguments

d

a PROsetta_data object.

scale_id

scale IDs to extract response. If all, use all scale IDs. (default = all)

person_id

if TRUE, also return person IDs. (default = FALSE)

Value

getResponse returns a data.frame containing scale-wise response.

Examples

getResponse(data_asq)
getResponse(data_asq, 1)
getResponse(data_asq, 2)
getResponse(data_asq, c(1, 2))
getResponse(data_asq, c(2, 1))
getResponse(data_asq, c(1, 2), person_id = TRUE)