On Fri, Sep 11, 2009 at 7:15 PM, carol white <wht_...@yahoo.com> wrote:

> It might be a primitive question but how it is possible to determine if a 
> variable is initialized in an environment?

What about this?

> "x" %in% ls()
[1] FALSE
> x = 41
> "x" %in% ls()
[1] TRUE

Best,
Michael

-- 
Michael Knudsen
micknud...@gmail.com
http://lifeofknudsen.blogspot.com/

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to