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)

rubenarslan/formr documentation built on March 19, 2018, 8:54 p.m.