0

I want to remove (rm) a list of objects on R. I use rm(object) for deleting it but how this can be donne to a vector? I want to use lapply function, let's say:

a = c(1,2)
b = c(3,4)
all = c(a,b)
lapply(all, FUN=rm)

But I got the message "must contain names or character strings". Any hints?

Juan Chô
  • 542
  • 6
  • 23

0 Answers0