Welcome to the LimeSurvey Community Forum

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

LSRC Api query - limer and weird column name(s) ï..id

  • r0bis
  • r0bis's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 year 3 weeks ago #242015 by r0bis
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 5.6.13+230327
Own server or LimeSurvey hosting: own cloud hosted on a2hosting
Survey theme/template: default
PHP version: 7.3
==================
This is more for users who make use of LSRC Api to export data. I do so via cloudyr/limer package. It works well, but there can be some weirdness with column names that are fetched from the database. The first column of the dataframe is the response id and on Linux it arrives as 'id'. On windows, however, the id column is called 'ï..id' and therefore I need to run:
Code:
 names(initData) <- gsub("ï..id", "id", names(initData))

Which is sort of fine, I can do that, but it is weird and somewhat unpredictable. On Linux all is fine. Any thoughts how to approach this would be appreciated.

r0berts

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose