Displaying 20 results from an estimated 10000 matches similar to: "Another problem with encoding"
2008 Jan 02
1
WG: AW: Another problem with encoding
Hello, Peter,
I tried it out: iconv(names(attributes(spss[,'Y6'])[[1]][14]), "UTF-8", "LATIN1", sub='byte') yielded
[1] "<c4>rzte Chirurgie"
and c4 corresponds in most encodings to ?. What can I do next? I wonder whether there is a more comfortable way then to change the
occurences of <..> by the adequate character.
Regards,
Matthias
2007 Dec 27
1
encoding question again
Hi, R Devils,
I'm running the actual R version in JGR (version 1.5-8 ). Sys.getlocale(category = "LC_ALL") yields
[1] "LC_COLLATE=German_Germany.1252;LC_CTYPE=German_Germany.1252;LC_MONETARY=German_Germany.1252;LC_NUMERIC=C;LC_TIME=German_Germany.1252"
I want to write some HTML-Code enhanced by statistical results and labels encoded in Latin-1, which I pass to a function.
2008 Jan 09
2
labels to values
I couldn't find out how the following to solve:
There is a column in a data.frame:
> d[, 'Y6']
[1] 6 3 8 11 8 9 6 8 3 5 10 15 NA 9 8 3 8 16 6 6 NA 10 5 2 7 7 6 16 7 15 7 10 12 8 7 12 12 16 7 6 8 8
15 6 [45] NA 8 99 7 12 8 9 16 7 16 8 7 7 1 15 12 8 7 10 7 8 7 8 9 8 6 6 8 6 16 11 5 11 11 1 11 3 7 7 10
10 10 6 11 [89] 16 NA
2007 Feb 01
2
read.spss and encodings
Hi!
I'm having trouble with importing spss files containing non-ascii characters
(R 2.4.1, debian linux, i386). To reproduce:
Download the following file:
http://statmath.wu-wien.ac.at/data/spss/de/comphomeneu.sav
require (foreign)
Sys.setlocale (locale="C")
read.spss("comphomeneu.sav")$ARBEIT[1]
# prints:
# [1] im B\374ro
# Levels: im B\374ro zuhause
\374 of course
2007 Dec 28
0
encoding question again
Hi,
I'm running the actual R version in JGR (version 1.5-8 ).
Sys.getlocale(category = "LC_ALL") yields
[1] "LC_COLLATE=German_Germany.1252;LC_CTYPE=German_Germany.1252;LC_MONETARY=German_Germany.1252;LC_NUMERIC=C;LC_TIME=German_Germany.1252"
I want to write some HTML-Code enhanced by statistical results and labels encoded in Latin-1, which I pass to a function. Some
2008 Dec 14
1
re ad.spss (foreign) conflict with SPSS 17 files.
SPSS seems to have changed its default datafile format, resulting in issues
for read.spss(). In Windows this results in a warning, in Debian the import
completely fails:
Debian (R version 2.8.0 (2008-10-20) i486-pc-linux-gnu, foreign_0.8-29)
> read.spss("/home/jeroen/samples/Tomato.sav")
Error in iconv(names(rval), cp, "") :
unsupported conversion from 'CP65001'
2008 Oct 21
1
SPSS to R conversion "error in iconv..."
Dear R users,
I am trying to get R to read an .sav data file generated in SPSS 17
for Mac. Here is the command and the error message:
> data = read.spss('/Users/userdir/Desktop/filename.sav')
Error in iconv(names(rval), cp, "") : unsupported conversion
In addition: Warning message:
In read.spss("/Users/userdir/Desktop/filename.sav") :
2012 Sep 08
3
Can I make spss.get reencode from Windows-1252?
Hi all. I have an SPSS file that I'm loading into R with the Hmisc spss.get function. The trouble is that the SPSS file uses the Windows-1252 character set (which I think is the default for SPSS on Windows) instead of plain-ol' Latin-1, and since spss.get doesn't allow me to pass the "reencode" option to read.spss, any characters in Windows-1252 that are not a part of Latin-1
2009 Jan 07
1
Importing data from SPSS with Arabic encoding
Dear R-users,
I'm facing a problem with the import of data in R. I have a sav file that, I presume, uses some Arabic encoding (but I don't know which one) and I would like to read it with R. When I use the function read.spss (I also tried spss.get(Hmisc)), I get the following message:
> read.spss("Hhld.sav")
Erreur dans read.spss("Hhld.sav") :
erreur ? la lecture
2013 Apr 11
2
(no subject)
Dear all,
Is there a quick and easy way of converting utf characters to the \uxxxx
form (necessary e.g. for packages)? I mean something working like this:
> utf2uxxxx("õäöü")
[1] "\u00f5\u00e4\u00f6\u00fc"
It is easy to program but perhaps someone already has implemented this. (I
couldn't find anything useful from searches incl RSiteSearch).
Thanks in advance,
Kenn
2008 Jul 18
5
Reading SPSS .por files
Does anyone know how to read SPSS .por (ie Portable) files? The foreign package only deals with SPSS .sav files and not with those with a "por" extension.
Thanks,
José
Mr José Luis Iparraguirre D'Elia
Senior Research Economist
Economic Research Institute of Northern Ireland
Floral Buildings
2 - 14 East Bridge Street
Belfast BT1 3NQ
Northern Ireland
United Kingdom
2011 Jan 03
2
error in calling source(): invalid multibyte character in parser
Being italians when writing comments/instructions we use accented letters - like ?, ?, ?, etc.... when running R scripts using such characters I get and error saying:
invalid multibyte character in parser
I have been looking at the help and searched the r-help archives but I haven't find anything that I could intelligibly apply to my case.
Can anyone suggest a fix for this error?
Thanks,
2009 Apr 08
1
read.spss, locale and encodings
I must be missing something obvious here:
According to the help page for read.spss, the reencode option is only
active when R is run under a UTF-8 locale.
read.spss can only import the SPSS file when run under a iso88591(5)
locale, under a UTF-8 locale I get:
Error in read.spss("wo.sav") : error reading system-file header
In addition: Warning message:
In read.spss("wo.sav")
2006 May 11
3
Now another question regarding the Foreign package
Hi,
Because I'm new to R and trying to move off of SPSS, I have another question. I downloaded the "Foreign" package which I understand reads in various datasets from programs such as SPSS and SAS. There isn't much documentation that I can find regarding the specifics of this in the online docs, but I assume that it is like read.table. So, here is what I wrote and here is
2008 Jan 04
2
subsetting
I'm using R Version 2.6.1 under Windows XP.
> search()
[1] ".GlobalEnv" "s" "s" "package:cairoDevice"
[5] "package:datasets" "package:foreign" "package:graphics" "package:grDevices"
[9] "package:gWidgetsrJava"
2012 Mar 26
2
SPSS R-Menu for Ordinal Factor Analysis
Dear all,
I am trying to conduct an enhanced version of factor analysis with a
SPSS interface that allows to use R. This approach has been suggested in
the recent article:
Basto, M. and J.M. Pereira An SPSS R-Menu for Ordinal Factor Analysis.
Journal of Statistical Software 46, pp. 1-29.
My variables are ordinal-type and the tool of Basto allows to run
polychoric correlations in the SPSS
2009 Mar 03
1
SPSS data import: problems & work arounds for GSS surveys
I'm using R 2.8.1 on Ubuntu 8.10. I'm writing partly to ask what's
wrong, partly to tell other users who search that there is a work
around.
The General Social Survey is a long standing series of surveys
provided by NORC (National Opinion Research Center). I have
downloaded some years of the survey data in SPSS format (here's the
site:
2008 Apr 15
2
How can I import user-defined missings from Spss?
Hi,
It works for me to import spss datasets via library(foreign) with read.spss or via library Hmisc by (spss.get).
But no matter which way I do import the data, user-defined missings from Spss are always lost.
(it makes no difference if there are a single value, a range, or any combination of them. They are always ignored).
Is there any way in R to find out if any value was user-defined missing
2009 Feb 07
2
reading SPSS .sav files (PR#13509)
Full_Name: Roger Newton
Version: 2.8.1
OS: windows 2000
Submission from: (NULL) (80.176.228.157)
I have an elderly version of SPSS (version 11) which I still use. R Version
2.6.1 would, and still will, read SPSS *.sav files produced by SPSS version 11.
R version 2.8.1 which I installed two days ago (05/02/09) reports an error and
shuts down when trying to read SPSS version 11 *.sav files using
2003 Nov 04
5
read.spss Error reading system-file header
Is there any documentation on what kind of SPSS file can and cannot be
read by read.spss? Alternatively, how can one modify or "clean" an SPSS
file to make it readable by read.spss? What properties must a *.sav file
before read.spss can read it?
The file in this example is 270KB, with 5 rows and 173 columns. I have no
trouble reading larger files with read.spss, so it's not