Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: filtered display or scalars?
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: filtered display or scalars?
Date
Tue, 3 Apr 2012 11:28:03 +0100
Excellent point.
On Tue, Apr 3, 2012 at 11:16 AM, daniel klein
<[email protected]> wrote:
> Stefan,
>
> you can use extended functions (help extended_fcn) to do this.
>
> . scalar dir `: all scalars "city_xy*"'
>
> Typing three more lines will ease usage later on
>
> pr scadir
> vers 9.2
> scalar dir `: all scalars `"`0'"''
> end
>
> . scadir city_xy_*
>
>
> Best
> Daniel
>
> --
> Hi Statalisters,
>
> In the last months I frequently used Stata to create XML-Files for
> Instantatlas geomapping software.
>
> I use scalars to store indicator data and XML-lines. Several
> (ten-)thousand scalars are needed to create a map.
> While programming or debugging I often want to look at certain groups
> of scalars but "scalar dir" offers the whole list only.
>
> Is there any way to obtain a filtered list (something like - scalar
> dir city_xy_* -) which only displays scalars with a given string?
> I didn't find anything.
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/