Monday, 15 February 2010

r - Conditionally select dataframes from environment and apply a function -


I have a big atmosphere where I want to choose the conditional data which has the string "ABC" in its name. I can implement a function I think, the last argument is wrong, although I am unsure about how to solve this problem.

  sapply (mget (ls (., GlobalEnv), ls () == "ABC")  


No comments:

Post a Comment