Description Usage Arguments Examples
View source: R/connect_to_formr.R
This function just turns a formr_item_list into a data.frame. The reason, these lists don't come as data.frames as default is because the 'choices' are a list themselves. When transforming, the choice column contains a collapsed choice list, which may be less useful for some purposes.
1 2 | ## S3 method for class 'formr_item_list'
as.data.frame(x, row.names, ...)
|
x |
a formr_item_list |
row.names |
not used |
... |
not used |
1 2 3 4 5 6 7 8 9 | ## Not run:
formr_connect(email = 'you@example.net', password = 'zebrafinch' )
as.data.frame(formr_items(survey_name = 'training_diary' ))
## End(Not run)
items = formr_items(path =
system.file('extdata/gods_example_items.json', package = 'formr', mustWork = TRUE))
items_df = as.data.frame(items)
items_df[1,]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.