Statalist


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

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


From   Nathan Danneman <[email protected]>
To   [email protected]
Subject   st: how to create a vector from the column names of a matrix
Date   Tue, 2 Jun 2009 14:14:01 +1000

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/



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