View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
06894 | Bug reports | Import/Export | public | 2012-11-18 09:43 | 2013-02-07 10:52 |
Reporter | dholeman | Assigned To | |||
Priority | normal | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.00+ | ||||
Fixed in Version | 2.00+ | ||||
Summary | 06894: Data export in R syntax file for ranking type questions omits answer labels causing R data import failure | ||||
Description | Answer data from ranking type questions that are exported in R format (.csv and .R files) cannot be imported into R via either the command line or R Commander. Importing into R via R Commander causes a generic error message and the survey data fails to load. Importing into R via the command line interface [i.e. source("survey_546891_R_syntax_file.R", encoding = "UTF-8")] allows the survey to be imported properly except for ranking type questions which have empty data. Each answer for ranking type questions causes the following error message: "Warning in The cause of the import error is that the answer labels are missing for the ranking type questions in the R Syntax (.R) file output. For instance: data[, 68] <- as.character(data[, 68]) The data itself is present in the companion .csv file. I can replace the labels with data manually and then import the answer successfully to R. This is a problem with the output algorithm from Limesurvey rather than an input problem with R. I used R Commander V.1.9-1 from http://www.r-project.org, http://socserv.socsci.mcmaster.ca/jfox/Misc/Rcmdr/ and R version 2.15.1 | ||||
Steps To Reproduce | Create a survey with a ranking questions (see attached lss). | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 121117 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Firefox | ||||
Database type & version | 5.0.96 MySQL | ||||
Server OS (if known) | Linux kernel 2.6.18-374.el5.lve0. | ||||
Webserver software & version (if known) | Apache 2.2.21 | ||||
PHP Version | 5.2.17 | ||||
Hey Andrie, can you please take a look at this? |
|
I'm a limeservice user and I just upgraded to 2.0 which I now regret because I'm having this same problem. It's frustrating because I had just gotten everything working with my scripts to process the surveys and then I upgraded. Ugh. |
|
New version 2.00 build 120206 released. |
|
LimeSurvey: master 88f500d2 2013-01-29 14:59:40 Details Diff |
Fixed issue 06894: Data export in R syntax file for ranking type questions omits answer labels causing R data import failure Dev export.php In function exportr() set $length_vallabel to 120, to prevent blank answer field Fixed issue 07243: Syntax error in sytax file for R Dev export.php In function exportr() changed read.csv() arguments |
Affected Issues 06894, 07243 |
|
mod - .gitignore | Diff File | ||
mod - application/controllers/admin/export.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-11-18 09:43 | dholeman | New Issue | |
2012-11-18 09:43 | dholeman | File Added: limesurvey_survey_546891.lss | |
2012-11-18 14:26 | c_schmitz | Assigned To | => user9189 |
2012-11-18 14:26 | c_schmitz | Status | new => assigned |
2012-11-18 14:27 | c_schmitz | Note Added: 22301 | |
2013-01-29 01:24 | mikeg | Note Added: 23859 | |
2013-01-29 01:26 | mikeg | Issue Monitored: mikeg | |
2013-01-29 16:05 | c_schmitz | Changeset attached | => LimeSurvey master 88f500d2 |
2013-01-29 16:05 | c_schmitz | Status | assigned => resolved |
2013-01-29 16:05 | c_schmitz | Fixed in Version | => 2.00+ |
2013-01-29 16:05 | c_schmitz | Resolution | open => fixed |
2013-02-07 10:52 | c_schmitz | Note Added: 23969 | |
2013-02-07 10:52 | c_schmitz | Status | resolved => closed |
2021-08-03 07:41 | guest | Bug heat | 4 => 6 |