R: Apply, custom function and Dataframe names
问题 I have a data frame Indices containing various names which correspond to data frames ( i.e. a name "Index 1" has a corresponding data frame Index 1 ). Now I want to run my custom function calcScores over all data frames and add several columns to that data frame. Since I'm not in the global environment I return that "new" data frame and want to assign it back to the original variable Index 1 , so Index 1 now has the new data frame with the added columns. Here's my code (no chance I can make