ns_get_data {nettskjemar} | R Documentation |
Get data from a form
Description
This function connects to a specific form and fetches all answers. The responses are placed in a data.frame for easy use.
Usage
ns_get_data(form_id, type = NULL)
ns_get_submissions(form_id, type = NULL)
Arguments
form_id |
integer. Number of the form to retrieve |
type |
Character or NULL. One of either "original" or "long". |
Details
- "original"
- Returns data in the same tabular format as delivered by Nettskjema.
- "long"
- Returns the data in tall format, where there are multiple rows per participant (one per question) and each choice is timestamped.
Value
data.frame
Functions
-
ns_get_submissions()
: Alternative function name, does the same.
Examples
## Not run:
# Retrieve all data
data_110000 <- ns_get_data(110000)
## End(Not run)
[Package nettskjemar version 1.0.2 Index]