Export responses

lsExportResponses(
  surveyID,
  lang = NULL,
  completionStatus = "all",
  headingType = "code",
  responseType = "short",
  lsAPIurl = getOption("lsAPIurl"),
  sessionKey = NULL
)

Arguments

surveyID

ID of the survey

lang

(optional) Language code for the language to be used (This affects headers if headingType is not "code")

completionStatus

(optional) Response completion status. One out of "complete", "incomplete", "all"

headingType

(optional) Type of the column headers (mainly questions). One out of "code", "full", "abbreviated"

responseType

(optional) Answer codes ("short") where applicable, or full answer texts ("long")

lsAPIurl

(optional) The URL of the LimeSurvey RemoteControl 2 JSON-RPC API

sessionKey

(optional) Authentication token, see lsGetSessionKey()

Value

A data frame with the survey responses

References

https://api.limesurvey.org/classes/remotecontrol_handle.html#method_export_responses

Examples

if (FALSE) { lsExportResponses("123456", completionStatus = "incomplete", headingType = "abbreviated") }