[R] syntax error in function 'for'

Peter Dalgaard p.dalgaard at biostat.ku.dk
Wed May 5 17:11:14 CEST 2004


Ulrich Leopold <uleopold at science.uva.nl> writes:

> Dear list,
> 
> I get a syntax error for the following function:
> 
> for(na.omit(sqrt(D))>2) {na.omit(A)-(na.omit(B)+(na.omit(sqrt(C))))}
> 
> Any idea what is wrong?

Yes, that's not the syntax for a for loop. I have no idea what your
intention might have been, though. 

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907




More information about the R-help mailing list