get_raw_codebook: Get the raw codebook

View source: R/nettskjema-codebook.R

get_raw_codebookR Documentation

Get the raw codebook

Description

The raw codebook is a list of answers and questions with unique ids for both, and the text associated with them. This information can be retrieved from the raw nettskjema data. This can be useful if the nettskjema submission data has been returned with as_is = TRUE.

Usage

get_raw_codebook(form_id, token_name = "NETTSKJEMA_API_TOKEN", ...)

Arguments

form_id

integer. Number of the form to retrieve

token_name

character. Name to give the token, defaults to 'NETTSKJEMA_API_TOKEN'

...

other arguments to GET

Value

long format tibble with meta-data for a specific nettskjema

Examples

## Not run: 
form_id <- 100000
get_raw_codebook(form_id)

Or if the token is saved in a non-standard name
get_raw_codebook(form_id, token_name = "MY_NETTSKJEMA_TOKEN_NAME")

## End(Not run)

LCBC-UiO/nettskjemar documentation built on Aug. 24, 2023, 5:44 p.m.