Error in nchar(var) : invalid multibyte string 1
curious if you know how I could "pull" this list from R.. when I do I get the error from the title.. The data is coming from a SAS XPT file that I read into R using the SASxport library..
vars$VD$label [1] "Study Identifier"
[2] "Unique Subject Identifier"
[3] "Site Name"
[4] "Site Number"
[5] "Subject ID"
[6] "System Visit Name"
[7] "Visit Name"
[8] "Page Name"
[9] "Page Sequence Number"
[10] "Line Number"
[11] "Did the visit occur - Decoded"
[12] "Did the visit occur"
[13] "Date of Visit - Numeric"
[14] "Date of Visit"
[15] "Visit occur at patient\x92s home - Decoded" [16] "Visit occur at patient\x92s home"
I forgot to mention that after that error is displayed the program just hangs.. have to kill it hard.. I made a quick patch to add ,allowNA=TRUE to the nchar(var) line in rinruby.rb (line 586).. that prevented the error from happening but now it just hangs at that pull command and I have to kill it again..
BTW.. i got around this by doing this before I pull..
r.eval "foo = vars$#{domain}$label"
r.eval "for (i in 1:length(foo)) { foo[i] = (gsub('\\x92','', foo[i])) }"
labels = r.pull('foo')
I'll leave this open in case you wanted to look into it. .otherwis feel free to close.. Thanks!!