likert_from_items {codebook} | R Documentation |
Derive a likert object from items
Description
Pass a data.frame containing several items composing one scale, get a
likert::likert()
object, which you can plot.
Intelligently makes use of labels and value labels if present.
Usage
likert_from_items(items)
Arguments
items |
a data frame of items composing one scale |
Examples
data("bfi", package = "codebook")
open_items <- paste0("BFIK_open_",1:4)
graphics::plot(likert_from_items(bfi[, open_items]))
[Package codebook version 0.9.2 Index]