powered by
uses a dataset, marking it as the active dataset
use(x, clear = FALSE, type = NULL, ...)
usually either a data.frame or a csv/dta filename to be imported. An R function which returns a data.frame can also be specified.
if TRUE, erase current data if it already exists. If FALSE, back up data so that it can be switched to later via switchdata (default: FALSE).
switchdata
either "csv" or "dta" for loading csv or dta data set
other options to pass to read.csv in case x is a csv file or to read.dta or read.dta13 depending on the type of file being loaded
read.csv
read.dta
read.dta13
returns NULL invisibly
# NOT RUN { library(plm) data(Produc) use(Produc, clear=TRUE) listif() dropvar(".*") # }
Run the code above in your browser using DataLab