Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: new on SSC


From   Austin Nichols <[email protected]>
To   [email protected]
Subject   st: new on SSC
Date   Tue, 28 Apr 2009 14:07:19 -0400

Thanks to Kit Baum, you can find two new utility programs on SSC
(both already familiar to assiduous Statalisters, from recent posts):
-find- and -matnames-

To install:

ssc inst find
ssc inst matnames

-find- looks for matching strings across multiple files in the current
directory. File names that contain an asterix are expanded into lists
of files following -dir-. If no files are specified, -find- looks for
matching strings across all files in the current working directory.
Depending on your operating system, you may prefer grep (*nix), find
or findstr (Windows/DOS), or mdfind (Mac).

-matnames- returns matrix row and column names as locals in r().  The
macro extended functions that retrieve matrix row and column names do
not quote the names, so that if names contain spaces, the number of
tokens may not match the number of rows or columns (that is, you may
not be able to rename the matrix rows or columns with its own names
that you just retrieved).  -matnames- uses the Mata functions
st_matrixrowstripe and st_matrixcolstripe to circumvent this
difficulty.

Or check out:
http://repec.org/bocode/f/find.html
http://repec.org/bocode/m/matnames.html
*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index