代码拉取完成,页面将自动刷新
同步操作将从 连享会/nwcommands 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
{smcl}
{* *! version 1.0.6 23aug2014 author: Thomas Grund}{...}
{marker topic}
{helpb nw_topical##import:[NW-2.2] Import/Export}
{title:Title}
{p2colset 9 14 22 2}{...}
{p2col :nwuse {hline 2} Load Stata-format networks}
{p2colreset}{...}
{title:Syntax}
{p 8 17 2}
{cmdab: nwuse}
{it:{help filename}}
[{cmd:,}
{cmd:nwclear}
{cmd:clear}]
{p 8 17 2}
{cmdab: webnwuse}
{it:{help netexample}}
[{cmd:,}
{cmd:nwclear}
{cmd:clear}]
{synoptset 20 tabbed}{...}
{synopthdr}
{synoptline}
{synopt:{opt nwclear}}clears all variables and networks{p_end}
{synopt:{opt clear}}only clears variables, but keeps networks{p_end}
{title:Description}
{pstd}
{bf:nwuse} loads into memory a Stata-format network dataset previously saved with {help nwsave} and sets all networks. If {it:{help filename}}
is specified without an extension, {bf:.dta} is assumed. If your {it:filename} contains embedded spaces, remember to enclose
it in double quotes.
{pstd}
The command automatically loads data with {help use}, but then also declares the data as network data with {help nwset} or {help nwfromedge}.
{pstd}
More about the internal file-format that is used to store network data in Stata on the disk as {bf:.dta} file see {help nwsave##fileformat:here}
{title:Examples}
{pstd}
This example creates 5 new random networks and {help nwsave:saves} them as {it:mynets}. A new dataset called {it:mynets.dta} is created in the working director with the networks and the relevant meta-information.
{cmd:. nwclear}
{cmd:. nwrandom 20, ntimes(5) prob(.2)}
{cmd:. nwsave mynets}
{pstd}
After this, one can easily load these 5 networks in a new Stata session. Just as if one would load a normal Stata dataset. The difference is that {help nwuse} automatically declares data
to be network data with the meta-information it finds in the dataset.
{cmd:. nwuse mynets}
{title:See also}
{help webnwuse}, {help nwsave}, {help use}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。