Description Usage Arguments Examples
View source: R/connect_to_formr.R
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.
1 | formr_likert(item_list, results)
|
item_list |
an item_list |
results |
survey results |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.