How do I clear only a few specific objects from the workspace?

前端 未结 10 1755
陌清茗
陌清茗 2020-12-04 05:53

I would like to remove some data from the workspace. I know the \"Clear All\" button will remove all data. However, I would like to remove just certain data.

For exa

10条回答
  •  借酒劲吻你
    2020-12-04 06:34

    paste0("data_",seq(1,3,1)) 
    # makes multiple data.frame names with sequential number
    rm(list=paste0("data_",seq(1,3,1))
    # above code removes data_1~data_3
    

提交回复
热议问题