nwunab

Unabbreviate network list

Syntax

Expand and unabbreviate network lists
nwunab lmacname : netlist [,
        min(#) max(#)]

Description

This is the network version of unab. nwunab expands and unabbreviates a netlist of existing networks, placing the results in the local macro lmacname. nwunab is a low-level parsing command and works in exactly the same way as unab. One can also use nwds to unabbreviate network lists. The _nwsyntax command is a high-level parsing command that, among other things, also unabbreviates network lists; see _nwsyntax.

Options

  • min(#) specifies the minimum number of networks
  • allowed. The default is hi:min(1).

  • max(#) specifies the maximum number of networks
  • allowed. By default the limit of unab applies.

Network types

The command works the same for every network type (see nwnetworktypes).

Examples

. nwwebuse glasgow, nwclear
. nwunab nets : glasg*
. di `nets'
glasgow1 glasgow2 glasgow3

Stored results

  • Macros
  • r(netlist) — the expanded list of networks
  • r(networks) — number of networks in the list

See also


nwcommands version 3.25.0, 14 November 2026 (check your installed version)


Back to top

nwcommands is free software under the GNU General Public License, version 3, as are the model packages nwsaom, nwergm, nwdynam and nwrem. Citing and licenses · Get help · GitHub. Issues with the core go to the nwcommands repository; issues with a model package go to that package's own repository.

This site uses Just the Docs, a documentation theme for Jekyll.