Re: [R] Declaring variables in R

2007-10-19 Thread Thomas Lumley
On Thu, 18 Oct 2007, Moshe Olshansky wrote: > Please forgive me if my question is answered in Help > FAQ no. 23481739... If it were, we might well not forgive you -- the faq isn't *that* long. But it isn't. > In VBA one can use a special statement (Option > Explicit) which does not allow using

Re: [R] Declaring variables in R

2007-10-19 Thread Gabor Grothendieck
See findGlobals in the codetools package. On 10/19/07, Moshe Olshansky <[EMAIL PROTECTED]> wrote: > Please forgive me if my question is answered in Help > FAQ no. 23481739... > > In language like C every variable must be declared > before it can be used. > In VBA, if a variable has not been declar

[R] Declaring variables in R

2007-10-19 Thread Moshe Olshansky
Please forgive me if my question is answered in Help FAQ no. 23481739... In language like C every variable must be declared before it can be used. In VBA, if a variable has not been declared it is assumed to be of a special type (Variant). In R (and Matlab) variables do not have to be declared. Th