Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: values of string variable into matrix rownames


From   "Tom Boonen" <[email protected]>
To   [email protected]
Subject   st: values of string variable into matrix rownames
Date   Fri, 2 Mar 2007 16:11:37 -0500

Hi,

how can I extract values of a string varaible and put them into
rownames of a matrix?

Assume I have a string variable "city". Now

tab city

London 1
Berlin 1
.

How can I grab the London, Berlin, etc. vector of names to put them
into the colnames of a matrix later on?

Thanks very much.

Tom
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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