Re: [R] calling a list element from a list name passed to a function

2008-01-27 Thread Gabor Grothendieck
Its a FAQ: http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-turn-a-string-into-a-variable_003f On Jan 27, 2008 8:42 AM, Gonçalo Ferraz <[EMAIL PROTECTED]> wrote: > Hi, > > 'true_name' is a list of numerical, matrix, and text items > > I do > > pass_name <- "true_name" > > and pass the name

[R] calling a list element from a list name passed to a function

2008-01-27 Thread Gonçalo Ferraz
Hi, 'true_name' is a list of numerical, matrix, and text items I do pass_name <- "true_name" and pass the name of the list to a function so that the character class variable 'passed_name' contains the name of the list called 'true_name' Inside the function, how can I get a specified elemen