Stata 15 help for webuse

[D] webuse -- Use dataset from Stata website

Syntax

Load dataset over the web

webuse ["]filename["] [, clear]

Report URL from which datasets will be obtained

webuse query

Specify URL from which dataset will be obtained

webuse set [http://]url[/]

Reset URL to default

webuse set

Menu

File > Example datasets...

Description

webuse filename loads the specified dataset, obtaining it over the web. By default, datasets are obtained from http://www.stata-press.com/data/r15/. If filename is specified without a suffix, .dta is assumed.

webuse query reports the URL from which datasets will be obtained.

webuse set allows you to specify the URL to be used as the source for datasets. webuse set without arguments resets the source to http://www.stata-press.com/data/r15/.

Option

clear specifies that it is okay to replace the data in memory, even though the current data have not been saved to disk.

Examples

Report URL from which datasets will be obtained . webuse query

Change URL from which datasets will be obtained . webuse set http://www.zzz.edu/users/~sue

Reset URL to the default . webuse set

Load the lifeexp dataset that is stored at http://www.stata-press.com/data/r15 . webuse lifeexp

Equivalent to above command . use http://www.stata-press.com/data/r15/lifeexp


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index