Skip to content
Prev 180843 / 398513 Next

remove empty objects from workspace

Thanks Jim, the removal of objects which are NA works perfectly!

For my second problem it didn't express myself correctly:
I  actually meant objects with rows (attributes?) but no data in it
but I solved this
adjusting your approach:

for(object in objects()) if(is.null(dim(get(object))[1]) ||
dim((get(object)))[1] == 0) rm(list=object)

Thanks a lot!


2009/5/19 Jim Lemon <jim at bitwrit.com.au>: