Monthly Archives: March 2013

Getting names of objects in an R workspace by type

To identify data frames in a workspace, and iterate over them by name, use Filter() with a few other functions: Here, objects() lists objects in the workspace, class() identifies their classes, and sapply() looks at each object in turn, returning … Continue reading

Posted in data munging, R | Tagged