use: uses a dataset, marking it as the active dataset

Description Usage Arguments Value Examples

Description

uses a dataset, marking it as the active dataset

Usage

1
use(x, clear = FALSE, type = NULL, ...)

Arguments

x

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.

clear

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).

type

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

Value

returns NULL invisibly

Examples

1
2
3
4
5
library(plm)
data(Produc)
use(Produc, clear=TRUE)
listif()
dropvar(".*")

genvar documentation built on Jan. 21, 2020, 9:07 a.m.