Hi,> t <- list("cat"=1) > exists("t")[1] TRUE> exists("t[["cat"]]")Error: unexpected symbol in "exists("t[["cat"> exists("t[[\"cat\"]]")[1] FALSE Thanks Stanley [[alternative HTML version deleted]]
On Apr 15, 2008, at 9:53 PM, Ng Stanley wrote:> Hi, > >> t <- list("cat"=1) >> exists("t") > [1] TRUE >> exists("t[["cat"]]") > Error: unexpected symbol in "exists("t[["cat" >> exists("t[[\"cat\"]]") > [1] FALSEPerhaps what you want is: "cat" %in% names(t)> Thanks > StanleyHaris Skiadas Department of Mathematics and Computer Science Hanover College