Remove defined variables from R environment

When I am debugging a piece of code I usually do it inside the R-terminal.  It’s nice to do things this way because you can poke at things when something goes wrong.  The only disadvantage is that you mush “refresh” the environment before re-executing.  I used to quit and re-enter.  I found a cool command that does what I want within the R environment:

rm(list = ls(all = TRUE))

About joelgranados

I'm fascinated with how technology and science impact our reality and am drawn to leverage them in order to increase the potential of human activity.
This entry was posted in PhD, R. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s