For those occasions when you want to clear all your data frames out of memory without also removing any functions you may have loaded in. Adapted from http://stackoverflow.com/questions/19684819/get-list-of-available-data-frames

clear_dataframes()

Examples

dat <- as.data.frame(x = rnorm(3), y = rnorm(3))
ls()
#> [1] "dat"
clear_dataframes()
ls()
#> [1] "dat"