formr_likert: Get Likert scales

Description Usage Arguments Examples

View source: R/connect_to_formr.R

Description

If you've retrieved an item table using formr_items() you can use this function to retrieve a likert::likert() object that can be used with the likert package functions (which makes nice plots). You can and should subset the results table to focus on items by scale or response format. The aggregator will interrupt if the response format changes.

Usage

1
formr_likert(item_list, results)

Arguments

item_list

an item_list

results

survey results

Examples

1
2
3
4
5
6
results = jsonlite::fromJSON(txt = 
	system.file('extdata/gods_example_results.json', package = 'formr', mustWork = TRUE))
items = formr_items(path = 
	system.file('extdata/gods_example_items.json', package = 'formr', mustWork = TRUE))
likert_items = formr_likert(item_list = items[2:5], results = results)
plot(likert_items)

grebbel/formr_test documentation built on May 17, 2019, 8:34 a.m.