Hello Steve,

sorry that I haven't written back earlier, I was ill and didn't check my
mails.

Thank you very much for your reply.

Thanks for the information about the duplicate levels.

I also didn't find any errors in my data after getting the "unknown type
warnings".

Marion

2012/2/26 Steve Taylor <steve.tay...@aut.ac.nz>

> suppressWarnings() will get rid of them for you.
>
> Note that in R a factor cannot have duplicate levels.  Compare the results
> with use.value.labels turned on or off, to see which you prefer.
>
> I also get the "unknown type" warnings, but I ignore them as my data seems
> to arrive into R intact.
>
> Hope that helps.
>
> cheers,
>    Steve
>
> -----Original Message-----
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
> On Behalf Of Marion Wenty
> Sent: Friday, 17 February 2012 1:00a
> To: r-help@r-project.org
> Subject: [R] Reading spss files into R - warnings
>
> Hello people,
>
> I have got a question concerning reading spss files into R:
>
> I used the package foreign and the following command:
>
> read.spss("C:/Eigene Dateien/myspssfile.sav",to.data.frame=T)
>
> I have read two different files into R (several times) and always got the
> following two warning messages:
>
> first file:
>
> Warnmeldungen:1: In `levels<-`(`*tmp*`, value = if (nl == nL)
> as.character(labels) else paste(labels,  :
>  doppelt auftretende Faktorstufen werden nicht mehr zulässig sein2:
> In `levels<-`(`*tmp*`, value = if (nl == nL) as.character(labels) else
> paste(labels,  :
>   doppelt auftretende Faktorstufen werden nicht mehr zulässig sein3:
> In `levels<-`(`*tmp*`, value = if (nl == nL) as.character(labels) else
> paste(labels,  :
>   doppelt auftretende Faktorstufen werden nicht mehr zulässig sein4:
> In `levels<-`(`*tmp*`, value = if (nl == nL) as.character(labels) else
> paste(labels,  :
>   doppelt auftretende Faktorstufen werden nicht mehr zulässig sein5:
> In `levels<-`(`*tmp*`, value = if (nl == nL) as.character(labels) else
> paste(labels,  :
>  doppelt auftretende Faktorstufen werden nicht mehr zulässig sein
>
>
> second file:
>
>
> Warnmeldungen:
>
> 1:
>
>  Unerkannter Datensatztyp 7, Untertyp 14 in Systemdatei vorgefunden2:
>
> Unerkannter Datensatztyp 7, Untertyp 18 in Systemdatei vorgefunden
>
>
>
> I couldn't find out how to get rid of these.
>
>
> Does anyone know how to do this?
>
>
> Thank you very much in advance,
>
>
> Marion
>
>         [[alternative HTML version deleted]]
>
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to