1 Star 1 Fork 7

连享会/nwcommands

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nwunab.ado 625 Bytes
一键复制 编辑 原始数据 按行查看 历史
ThomasGrund 提交于 2015-09-18 19:13 . v1.5.1
capture program drop nwunab
program nwunab, rclass
syntax anything, [ min(passthru) max(passthru)]
gettoken macro_name _temp : anything, parse(":")
local _temp : subinstr local _temp ":" ""
local _tempcount : word count `_temp'
local netlist `_temp'
preserve
drop _all
qui nwset
foreach n in `r(names)' {
gen `n' = .
}
unab unabnets : `netlist', `max' `min'
local numnets : word count "`unablist'"
return local networks `numnets'
return local netlist "`unabnets'"
c_local `macro_name' "`unabnets'"
restore
end
*! v1.5.0 __ 17 Sep 2015 __ 13:09:53
*! v1.5.1 __ 17 Sep 2015 __ 14:54:23
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/arlionn/nwcommands.git
git@gitee.com:arlionn/nwcommands.git
arlionn
nwcommands
nwcommands
master

搜索帮助