Re: [R] Applying function to multiple data

2011-03-03 Thread Ivan Calandra
Hi, It might not be the best approach, but here is what I would do. ## 1) If you have your data in 3 different data.frames: #create a named list where each element is one of your data.frame list_df <- vector(mode="list", length=3) names(list_df) <- c("Bank", "Corporate", "Sovereign")

[R] Applying function to multiple data

2011-03-03 Thread Akshata Rao
Dear R helpers, I know R language at a preliminary level. This is my first post to this R forum. I have recently learned the use of function and have been successful in writing few on my own. However I am not able to figure out how to apply the function to multiple sets of data. # MY QUERY Suppo