Remove multiple objects with rm()
An other solution rm(list=ls(pattern="temp"))
, remove all objects matching the pattern.
Make the list a character vector (not a vector of names)
rm(list = c('temp1','temp2'))
or
rm(temp1, temp2)
An other solution rm(list=ls(pattern="temp"))
, remove all objects matching the pattern.
Make the list a character vector (not a vector of names)
rm(list = c('temp1','temp2'))
or
rm(temp1, temp2)