[R] list and <<-

David Winsemius dwinsemius at comcast.net
Sun Oct 20 08:48:45 CEST 2013


On Oct 19, 2013, at 9:28 PM, Taiyun Wei wrote:

> Dear All,
> 
>> opt = list()
>> opt$aa <<- TRUE
> Error in opt$aa <<- TRUE : object 'opt' not found

Try _not_ using `<<-`

> Why?

There wasn't an object by htat name in the enclosing environment.

-- 
David Winsemius
Alameda, CA, USA



More information about the R-help mailing list