
Last chance! 50% off unlimited learning
Sale ends in
switches data sets among the datasets you have in memory
switchdata(name = "last", clear = FALSE)
Name of the dataset to switch to. The name "last" is reserved for the last dataset loaded (default: last)
If TRUE, erase the currently loaded dataset. If FALSE, make the current dataset the new "last". (default: FALSE)
returns NULL invisibly
# NOT RUN {
use(cars, clear=TRUE)
namedata("cars", clear=TRUE)
library(plm)
data(Produc)
use(Produc, clear=TRUE)
listif()
switchdata("cars")
listif()
switchdata()
listif()
listdata()
# }
Run the code above in your browser using DataLab