Skip to content
Prev 343268 / 398506 Next

loading saved files with objects in same names

On 20/08/2014, 8:58 AM, Barry Rowlingson wrote:
That's a nice little function.  You could also have lsFrom, that lists
the objects stored in the file, along the same lines:

lsFrom <- function(file, all.names = FALSE, pattern) {
  e <- new.env()
  load(file, envir = e)
  ls(e, all.names = all.names, pattern = pattern)
}

Duncan Murdoch