search for: component_2

Displaying 1 result from an estimated 1 matches for "component_2".

Did you mean: component_0
2007 Jul 14
1
accessing list components with a variable
Let's say I have a list called the_list consisting of three components: the_list$component_1 the_list$component_2 the_list$component_3 Now, I want to access it using a variable called comp. comp <- "component_1" I'm looking for some function that let's me do this: unknown_function(the_list, comp) Which should do the same thing as: the_list$component_1 Any ideas? I'd be open to oth...