[R] syntax error in function 'for'

Ulrich Leopold uleopold at science.uva.nl
Wed May 5 17:06:23 CEST 2004


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?

I am using R 1.8.1 on Linux, Kernel 2.4.21-i686.

Regards, Ulrich

-- 
__________________________________________________

Ulrich Leopold MSc.

Computational Bio- and Physical Geography (CBPG)
Institute for Biodiversity and Ecosystem Dynamics (IBED)
Faculty of Science
University of Amsterdam
Nieuwe Achtergracht 166
NL-1018WV Amsterdam

Room:   B2.52
Phone:	+31 20 525 7456 (7451 Secretary)
Fax:	+31 20 525 7431
Mobile:	+31 64 220 3028
Email:	uleopold at science.uva.nl
URL:    www.science.uva.nl/ibed/cbpg




More information about the R-help mailing list