Hi all,
I'm trying to import SPSS data into R, but Hebrew characters end up as NA using one method, and an error using a second method.
library (foreign)
dataset1 = read.spss("C:\\PathToFile\\16199.sav", to.data.frame=TRUE, reencode='utf-8') # tried both with and w/o the reencode
# Hebrew characters end up as NA
dataset2 = spss.portable.file("16199.por") # por is the portable SPSS format;
# this gives the following error message:
# Error in parseHeaderPorStream(ptr) :
# unknown tag "6" found in line 7 offset 38
Tried changing the locale to Hebrew (using Sys.setlocale("LC_ALL", "Hebrew")) - doesn't help...
any advice would be highly appreciated!
Ariel