1 Star 0 Fork 7

夏汉林/nwcommands

forked from 连享会/nwcommands 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nworder.sthlp 3.03 KB
一键复制 编辑 原始数据 按行查看 历史
ThomasGrund 提交于 2015-02-18 23:41 . v1.1.6D
{smcl}
{* *! version 1.0.1 10jan2015 author: Thomas Grund}{...}
{marker topic}
{helpb nw_topical##utilities:[NW-2.7] Utilities}
{title:Title}
{p2colset 9 15 22 2}{...}
{p2col :nworder {hline 2} Reorder networks in dataset}
{p2colreset}{...}
{title:Syntax}
{p 8 13 2}
{opt nworder}
{it:{help netlist}}
[{cmd:,}
{it:options}]
{synoptset 16}{...}
{synopthdr}
{synoptline}
{synopt :{opt last}}move {help netlist} to end of dataset; the default{p_end}
{synopt :{opt first}}move {help netlist} to beginning of dataset{p_end}
{synopt :{opth b:efore(netname)}}move {help netlist} before {it:netname}{p_end}
{synopt :{opth a:fter(netname)}}move {help netlist} after {it:netname}{p_end}
{synopt :{opt alpha:betic}}alphabetize {help netlist} and move it to beginning of dataset{p_end}
{synopt :{opt seq:uential}}alphabetize {help netlist} keeping numbers sequential and move it to beginning of dataset{p_end
> }
{synoptline}
{p2colreset}{...}
{marker description}{...}
{title:Description}
{pstd}
{opt nworder} relocates {help netlist} to a position depending on
which option you specify. If no option is specified, {cmd:order} relocates
{it:netlist} to the end of the dataset in the order in which the
variables are specified.
{pstd}
The command is useful when one wants to do bulk-operations with networks and when
the network order matters (e.g. when making a movie out of _all networks, see {help nwmovie}).
{marker options}{...}
{title:Options}
{phang}
{opt last} shifts {help netlist} to the end of the dataset. This
is the default.
{phang}
{opt first} shifts {help netlist} to the beginning of the dataset.
{phang}
{opth before(netname)} shifts {varlist} before {it:netname}.
{phang}
{opth after(netname)} shifts {varlist} after {it:netname}.
{phang}
{opt alphabetic} alphabetizes {help netlist} and moves it to the beginning of the
dataset. For example, here is a netlist in {cmd:alphabetic} order:
{cmd:a x7 x70 x8 x80 z}. If combined with another option, {opt alphabetic}
just alphabetizes {it:varlist}, and the movement of {it:netlist} is controlled
by the other option.
{phang}
{opt sequential} alphabetizes {help netlist}, keeping netnames with the same
ordered letters but with differing appended numbers in sequential order.
{it:netlist} is moved to the beginning of the dataset. For example, here
is a netlist in {cmd:sequential} order: {cmd:a x7 x8 x70 x80 z}.
{marker examples}{...}
{title:Examples}
{pstd}Setup{p_end}
{phang2}{cmd:. webuse hpotter}
{pstd}Describe the dataset{p_end}
{phang2}{cmd:. nwds}
{pstd}Move {cmd:hpbook5} and {cmd:hpbook4} to the beginning of the dataset{p_end}
{phang2}{cmd:. nworder hpbook5 hpbook4}
{pstd}Describe the networks{p_end}
{phang2}{cmd:. nwds}
{pstd}Make {cmd:hpboo3} be the last network in the dataset{p_end}
{phang2}{cmd:. nworder hpbook3, last}
{pstd}Describe the dataset{p_end}
{phang2}{cmd:. nds}
{pstd}Alphabetize the networks{p_end}
{phang2}{cmd:. nworder _all, alphabetic}
{pstd}Describe the networks{p_end}
{phang2}{cmd:. nwds}{p_end}
{title:See also}
{help nwds}, {help nwsort}, {help order}, {help netlist}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiahanlin/nwcommands.git
git@gitee.com:xiahanlin/nwcommands.git
xiahanlin
nwcommands
nwcommands
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385