[BioC] R question on symbolic variables

Chris Fenton chrisf at fagmed.uit.no
Thu Jan 14 09:54:14 CET 2010


Is this a limitation in the R language or am I missing something
fundamental (like an operator) 

> a <- list("hello"<-c(1,2,3), "goodbye"<-c(1,2,3)) 
> a$hello
[1] 1 2 3

> b <- "hello" 
> a$b
NULL


So how could we do the following for example.  

> info <- names(a) 
> for (i in 1:length(info)){cat(a$info[i]);}


Chris



More information about the Bioconductor mailing list