[R] Clear all with/without function()

Taraxacum88 bvalen at alice.it
Wed Apr 8 11:50:40 CEST 2009


why 

rm(list=ls(all=TRUE),envir=globalenv())

is ok but

ca<-function()  rm(list=ls(all=TRUE),envir=globalenv())
ca()

does not work?


Thank you!
v

-- 
View this message in context: http://www.nabble.com/Clear-all-with-without-function%28%29-tp22947021p22947021.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list