View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
10586Bug reportsImport/Exportpublic2018-09-28 14:12
Reporterjmsanchez Assigned Toc_schmitz  
PriorityhighSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.06+ 
Fixed in Version2.06+ 
Summary10586: Multiple choice exported to R, levels are wrong on factor() syntax file
Description

When data is exported to R, there is an error in the scripts. When performing a conversion factor of multiple choice questions, levels are shown as c(0,1) but in csv are exported as c(1,2).

This means that all subsequent analysis using this data are wrong.

Steps To Reproduce
  1. Create a survey with a multi choice question
  2. Response
  3. Export data to R (syntax and data file)
  4. source() syntax file
  5. Compare data (data.frame created) with LimeSurvey data
TagsNo tags attached.
Attached Files
Bug heat4
Complete LimeSurvey version number (& build)160129
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmysql 5.1.73-1
Server OS (if known)?debian?
Webserver software & version (if known)apache 2.2.16-6+squeeze15
PHP Version5.3.29-1

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2016-04-04 13:33

administrator   ~36976

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=18291

c_schmitz

c_schmitz

2016-04-04 13:34

administrator   ~36977

Fix committed to 2.06lts branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=18292

c_schmitz

c_schmitz

2016-04-07 23:55

administrator   ~37112

Version 2.50 Build 160407 released

DenisChenu

DenisChenu

2018-09-28 14:12

developer   ~49181

Fix committed to 2.06lts branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=28075

Related Changesets

LimeSurvey: master ef17ba33

2016-04-04 13:33

c_schmitz


Details Diff
Fixed issue 10586: Multiple choice exported to R, levels are wrong on factor() syntax file Affected Issues
10586
mod - application/core/plugins/ExportR/RDataWriter.php Diff File

LimeSurvey: 2.06lts 79303d6b

2016-04-04 13:33

c_schmitz


Details Diff
Fixed issue 10586: Multiple choice exported to R, levels are wrong on factor() syntax file Affected Issues
10586
mod - application/core/plugins/ExportR/RDataWriter.php Diff File

LimeSurvey: 2.06lts 4b6faa5b

2016-04-04 15:33

c_schmitz

Committer: DenisChenu


Details Diff
Fixed issue 10586: Multiple choice exported to R, levels are wrong on factor() syntax file Affected Issues
10586
mod - application/core/plugins/ExportR/RDataWriter.php Diff File

Issue History

Date Modified Username Field Change
2016-02-25 12:59 jmsanchez New Issue
2016-02-25 12:59 jmsanchez File Added: survey_archive_291645.lsa
2016-02-25 17:19 c_schmitz Assigned To => c_schmitz
2016-02-25 17:19 c_schmitz Status new => assigned
2016-04-04 13:33 c_schmitz Changeset attached => LimeSurvey master ef17ba33
2016-04-04 13:33 c_schmitz Note Added: 36976
2016-04-04 13:33 c_schmitz Resolution open => fixed
2016-04-04 13:34 c_schmitz Changeset attached => LimeSurvey 2.06lts 79303d6b
2016-04-04 13:34 c_schmitz Note Added: 36977
2016-04-04 13:34 c_schmitz Status assigned => resolved
2016-04-04 13:34 c_schmitz Fixed in Version => 2.06+
2016-04-07 23:55 c_schmitz Note Added: 37112
2016-04-07 23:55 c_schmitz Status resolved => closed
2018-09-28 14:12 DenisChenu Changeset attached => LimeSurvey 2.06lts 4b6faa5b
2018-09-28 14:12 DenisChenu Note Added: 49181