Hello List, I have many data frames in environment. I need to keep 3 data frames only, con DB2 and ora. I write the script to do this. rm(ls(pattern != c("(con|DB2|ora)")))
but it give me an error message: Error in rm(ls(pattern != c("(con|DB2|ora)"))) : ... must contain names or character strings I think the pattern option doesn't support != ? and is it possible to fix this? Thank you, Kai [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.