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

-- 
SG

        [[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