View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
07243Bug reportsImport/Exportpublic2013-02-07 10:52
Reportermikeg Assigned Touser9189 
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00+ 
Fixed in Version2.00+ 
Summary07243: Syntax error in sytax file for R
Description

Empty responses in my survey are not being properly read as NA's when importing the results into R.

In 1.96, the second line in the synax files exported for R read
data <- read.table("survey_XXXXX_R_data_file.csv", sep=",", quote = "'", na.strings=c("","\"\""), stringsAsFactors=FALSE) ##based on older sytax files

In 2.00, the second line reads
data <- read.csv("survey_XXXXX_R_data_file.csv", na.strings=c(",", "\"\""), stringsAsFactors=FALSE)

So previously, "" was an NA string, but now it is not and "," is treated as an NA string instead.

Additional Information

Would be helpful if instructions for figuring out the build number was included here so I could file the report more completely and easily.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)000000
I will donate to the project if issue is resolvedNo
Browser
Database type & versionR version 2.15.2
Server OS (if known)limeservice
Webserver software & version (if known)limeservice
PHP Versionlimeservice

Users monitoring this issue

There are no users monitoring this issue.

Activities

mdekker

mdekker

2013-01-29 11:30

reporter   ~23871

Andrie, can you have a look at this one please?

c_schmitz

c_schmitz

2013-02-07 10:52

administrator   ~23970

New version 2.00 build 120206 released.

Related Changesets

LimeSurvey: master 88f500d2

2013-01-29 14:59:40

andrie

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

Issue History

Date Modified Username Field Change
2013-01-29 01:51 mikeg New Issue
2013-01-29 11:29 mdekker Assigned To => user9189
2013-01-29 11:29 mdekker Status new => assigned
2013-01-29 11:30 mdekker Note Added: 23871
2013-01-29 16:04 c_schmitz Status assigned => resolved
2013-01-29 16:04 c_schmitz Fixed in Version => 2.00+
2013-01-29 16:04 c_schmitz Resolution open => fixed
2013-01-29 16:05 c_schmitz Changeset attached => LimeSurvey master 88f500d2
2013-02-07 10:52 c_schmitz Note Added: 23970
2013-02-07 10:52 c_schmitz Status resolved => closed