search for: functuion

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

Did you mean: function
2006 Mar 30
3
access list component names with lapply
I have a question regarding accessing the names of list components when applying a function with lapply. Here is an example that demonstrates what I'd like to do. I have a list like this one: mylist <- list(a=letters[1:10], b=letters[10:1], c=letters[1:3]) Now I would like to append the names of the list components to their corresponding vectors with the c() function. I thought this