webuse: webuse

Description Usage Arguments Details Value Author(s) References Examples

View source: R/webuse.R

Description

Import Stata ‘webuse’ Datasets

Usage

1
2
3

Arguments

data

A character string containing the name of a Stata dataset.

version

An integer indicating the version of Stata for which to retrieve the named dataset. Default is version 14 (current as of June, 2015).

envir

An environment in which to store the object. By default, this will be the parent environment (often the global environment).

Details

webuse retrieves a named Stata dataset from Stata's server and loads it as a named object in the specified environment.

webuselist provides a named list of (some of) the datasets available. Use names(webuselist) to retrieve the datasets.

Value

A data.frame, invisibly.

Author(s)

Thomas J. Leeper

References

Stata webuse manual

Examples

1
2
3
4
5
webuse("auto")
"auto" 

webuse("uslifeexp")
"uslifeexp" 

webuse documentation built on May 2, 2019, 9:11 a.m.