ls_responses: Export Responses

Description Usage Arguments Value See Also Examples

View source: R/limesurvey.R

Description

Fetches responses and applies so-called "R-syntax" transformation script from LimeSurvey pertaining factor levels and items labels (those are readily available in RStudio data frame preview and can be extracted using attr(.data, "label")). By default, the function attempts to "clean" the labels (clean_labels argument), keeping only the content inside [...], if there are any.

Usage

1
ls_responses(survey_id, clean_labels = TRUE, lang = "cs", part = "all", ...)

Arguments

survey_id

integer, ID of the survey (as found with ls_surveys, e.g.).

clean_labels

logical, whether to clean labels of subquestions from repeating parts. Defaults to TRUE.

lang

character, ISO 639 language code, default to cs.

part

character, completion status, either complete, incomplete or all (the default).

...

other named arguments used by "export_responses" method. Use at your own risk.

Value

A tibble, or raw object if server response cannot be reasonably coerced to a tibble.

See Also

Other LimeSurvey functions: ls_add_participants(), ls_call(), ls_export(), ls_get_attrs(), ls_invite(), ls_login(), ls_participants(), ls_set_participant_properties(), ls_surveys()

Examples

1
2
3
4
## Not run: 
ls_responses(123456)

## End(Not run)

scholaempirica/reschola documentation built on Jan. 22, 2022, 2 p.m.