Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Extract question/answer TEXT with R

  • mascarpone
  • mascarpone's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 years 7 months ago #157430 by mascarpone
Extract question/answer TEXT with R was created by mascarpone
Hi Folks,

A colleague of mine is trying to read data with the following script:

get_session_key(username=getOption("lime_username"),password=getOption("lime_password"))
survey_df<-call_limer(method='list_surveys')

print(survey_df)
data<- get_responses(iSurveyID= 918155, sLanguageCode= '', sResponseType='short')

That is returning question/answer codes it seems. How can he get text instead?

Thanks!
The following user(s) said Thank You: alkhshbi
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 7 months ago #157433 by tpartner
Replied by tpartner on topic Extract question/answer TEXT with R
Just a guess, but try:

Code:
print(survey_df)
data<- get_responses(iSurveyID= 918155, sLanguageCode= '', sResponseType='long')

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: alkhshbi
The topic has been locked.
More
6 years 7 months ago #157434 by alkhshbi
Replied by alkhshbi on topic Extract question/answer TEXT with R
Thank you very much Tony & Sam.

It worked.
Amazing
The topic has been locked.
  • mascarpone
  • mascarpone's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 years 7 months ago #157435 by mascarpone
Replied by mascarpone on topic Extract question/answer TEXT with R
Lol nice one - thanks a lot! :)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose