Learn R Programming

litRiddle (version 1.0.0)

order.responses: Order Responses

Description

Function that transforms the survey responses into ordered factors. Levels quality.read and quality.notread: "very bad", "bad", "a bit bad", "neutral", "a bit good", "good", "very good", "NA". Levels literariness.read and literariness.notread: "absolutely not literary", "non-literary", "not very literary", "between literary and non-literary","a bit literary", "literary", "very literary", "NA". Levels statements 4/12: "completely disagree", "disagree", "neutral", "agree", "completely agree", "NA".

Usage

order.responses(bookratings.or.readingbehavior = NULL)

Value

A data table containing relevant variables.

Arguments

bookratings.or.readingbehavior

Use either "bookratings" or "readingbehavior" to specify which of the survey questions needs to be changed into ordered factors.

Author

Saskia Lensink, Maciej Eder

References

https://literaryquality.huygens.knaw.nl/

See Also

reviews, respondents, motivations, books

Examples

Run this code
# to create a data frame with ordered factor levels of the questions 
# on reading behavior:
dat.reviews = order.responses("readingbehavior")
str(dat.reviews)

# to create a data frame with ordered factor levels of the book ratings:
dat.ratings = order.responses("bookratings")
str(dat.ratings)

Run the code above in your browser using DataLab