Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


genvar (version 0.0.2.0)

switchdata: switches data sets among the datasets you have in memory

Description

switches data sets among the datasets you have in memory

Usage

switchdata(name = "last", clear = FALSE)

Arguments

name

Name of the dataset to switch to. The name "last" is reserved for the last dataset loaded (default: last)

clear

If TRUE, erase the currently loaded dataset. If FALSE, make the current dataset the new "last". (default: FALSE)

Value

returns NULL invisibly

Examples

Run this code
# 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