Import Stata ‘webuse’ Datasets
webuse(data, version = 15, envir = parent.frame()) webuselist
A character string containing the name of a Stata dataset.
An integer indicating the version of Stata for which to retrieve the named dataset. Default is version 14 (current as of June, 2015).
An environment in which to store the object. By default, this will be the parent environment (often the global environment).
A data.frame, invisibly.
webuse retrieves a named Stata dataset from Stata's server and loads it as a named object in the specified environment.
webuse
webuselist provides a named list of (some of) the datasets available. Use names(webuselist) to retrieve the datasets.
webuselist
names(webuselist)
Stata webuse manual
# NOT RUN { webuse("auto") "auto" # } # NOT RUN { <!-- %in% ls() --> # } # NOT RUN { webuse("uslifeexp") "uslifeexp" # } # NOT RUN { <!-- %in% ls() --> # }
Run the code above in your browser using DataLab