Hi, if you specify to.data.frame=T, then "use.missings" is implictly set to T as well, which causes different results for (user-defined) missing values.
cheers. Am 11.10.2011 12:07, schrieb Smart Guy: > Hi, > I have one doubt about one of the parameter of 'read.spss()' from > 'foreign' package. > Here is the syntax :- > > read.spss ( file, > use.value.labels = TRUE, > to.data.frame = FALSE, > max.value.labels = Inf, > trim.factor.names = FALSE, > trim_values = TRUE, > reencode = NA, > use.missings = to.data.frame ) > > > In above syntax when I pass *'to.data.frame= FALSE*' it gives me missing > values from SPSS file (that I try to read using read.spss() ). But when I > pass '*to.data.frame = TRUE*' then its not giving me missing values. And > need to get missing values. > > According to read.spss() documentation > > *to.data.frame : return a data frame?* > > I am curious to know, if we pass *'to.data.frame = TRUE*' , is it going to > cause some issue or effect something? I didn't understand the read.spss() > documentation correctly. > Please explain. > > Thanks in Advance > -- Eik Vettorazzi Department of Medical Biometry and Epidemiology University Medical Center Hamburg-Eppendorf Martinistr. 52 20246 Hamburg T ++49/40/7410-58243 F ++49/40/7410-57790 -- Pflichtangaben gemäß Gesetz über elektronische Handelsregister und Genossenschaftsregister sowie das Unternehmensregister (EHUG): Universitätsklinikum Hamburg-Eppendorf; Körperschaft des öffentlichen Rechts; Gerichtsstand: Hamburg Vorstandsmitglieder: Prof. Dr. Guido Sauter (Vertreter des Vorsitzenden), Dr. Alexander Kirstein, Joachim Prölß, Prof. Dr. Dr. Uwe Koch-Gromus ______________________________________________ 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.