[R] read.dta function in foreign package

Ravi Varadhan rvaradha at jhsph.edu
Wed Jul 24 18:11:09 CEST 2002


Hi:

When I import a Stata (version 7) data set into R, the missing values 
for factor and numeric variables are represented as "NaN", but the 
missing values for date variables are represented as "NA".  Can "NaN" 
for numeric variables be treated as the same as "NA" ? Are there 
situations when these two representations are not equivalent?

The following are the details of my system:

platform i386-pc-mingw32
arch     x86            
os       Win32          
system   x86, Win32     
status                  
major    1              
minor    4.1            
year     2002           
month    01             
day      30             
language R              

Thanks for your help,
Ravi Varadhan.


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list