Re: [R] Mutiplying a data frame to a list

2011-02-21 Thread Phil Spector
Rohit- If I understand you correctly, and your list's name is mylist, then mapply('*',mylist,as.numeric(names(mylist))) will do what you want. In the future, please provide a reproducible example. - Phil Spector

[R] Mutiplying a data frame to a list

2011-02-21 Thread Rohit Pandey
Hi R community, I have a question I'm sure is very simple for most of you. I have a list, with each element being a matrix and the names of the elements are numbers (like 1,3,...). I can extract the matrices and the names individually. Now, I want to multiply each of the names to the individual l