[R] Create NA
    tj 
    girlme80 at yahoo.com
       
    Tue Mar 23 02:05:30 CET 2010
    
    
  
Hi,
How can I create an NA?
for example, i have this program but it has errors
> x=scan()
1: 1 2 3 4 5
6: 
Read 5 items
> "na"*x
Error in "na" * x : non-numeric argument to binary operator
what should I multiply x so that I will get an NA? And I really need to
multiply that with my x vector. 
I need this output: (na,na,na,na,na)
Thank you for your time and help!=)
-- 
View this message in context: http://n4.nabble.com/Create-NA-tp1678543p1678543.html
Sent from the R help mailing list archive at Nabble.com.
    
    
More information about the R-help
mailing list