Statalist


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

st: AW: how to create a vector from the column names of a matrix


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: how to create a vector from the column names of a matrix
Date   Tue, 2 Jun 2009 08:51:56 +0200

<> 

Try

*************
help matmacfunc
*************



HTH
Martin

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Nathan Danneman
Gesendet: Dienstag, 2. Juni 2009 06:14
An: statalist@hsphsun2.harvard.edu
Betreff: st: how to create a vector from the column names of a matrix

Hi,

As a portion of a larger program, I would like to create a vector
containing the names of each column of a matrix, using each column's
number.  This is essentially the opposite of the rownumb command,
which takes the row's name, and returns its row number.

Thanks,
Nathan

-- 
"Imagination is more important than knowledge..."
      -- Albert Einstein
*
*   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/



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