Re: [R] import user-defined missings

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Fri, 11 Apr 2008 13:03:42 +0100 (BST)

You would need to study the source code and make appropriate changes. Had you supplied an example (see the footer of this message), some kind soul might have been prepared to make a patch for you.

On Fri, 11 Apr 2008, toater_at_gmx.net wrote:

> Hi,
>
> How can I import user-defined missings from Spss?
>
> 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 in Spss or not?
> Even to keep the information as an attribute would suit me fine, or to keep them as a string character like "miss" would be even better.
> To transform them into "NA" as the sysmis data from Spss is transformed automatically, would be an other alternative.
>
> Unfortunately I don't know if any of these options are possible. Could you help me out?
>
> Many thanks.
> Christine Christmann
>
> --
>
> ______________________________________________
> R-help_at_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.
>

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help_at_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.
Received on Fri 11 Apr 2008 - 12:09:32 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 11 Apr 2008 - 12:30:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive