Re: [R] syntax error in function 'for'

About this list Date view Thread view Subject view Author view Attachment view

From: Sundar Dorai-Raj (sundar.dorai-raj@pdf.com)
Date: Thu 06 May 2004 - 01:13:47 EST


Message-id: <409904AB.2060802@pdf.com>


Ulrich Leopold wrote:

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

`na.omit(sqrt(D))>2' is not of the form `var in seq' as the help page
for `for' would have told you.

Try help("for").

--sundar

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:07 EST