[R] if (NULL) is error?

Anupam Tyagi AnupTyagi at yahoo.com
Sun Oct 1 19:58:24 CEST 2006


Alberto Vieira Ferreira Monteiro <albmont <at> centroin.com.br> writes:

> Why this is not valid?
> 
> test <- NULL
> if (test) "test"

What are you trying to do with these statements? I think setting "test" to
"False" may do what you want. Of couse, I am just guessing. Anupam.



More information about the R-help mailing list