remove all variables except functions

后端 未结 5 1425
耶瑟儿~
耶瑟儿~ 2020-12-12 09:43

I have loaded in a R console different type of objects. I can remove them all using

rm(list=ls())

or remove only the functions (but not the

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-12 10:32

    You can use the following command to clear out ALL variables. Be careful because it you cannot get your variables back.

    rm(list=ls(all=TRUE))
    

提交回复
热议问题