Skip to content
Prev 139869 / 398525 Next

ls() and classes

Rolf Turner <r.turner at auckland.ac.nz> wrote in
news:72856D72-D960-48ED-AA77-ABD353548C08 at auckland.ac.nz:
Thank you, Rolf. That supplied the needed index to the question I 
struggled with yesterday: How to get a list of only my dataframes:

ls()[sapply(ls(),function(x){class(get(x))}) == "data.frame"]