I am looking to loop through each of the variables in my dataset and manipulate variables that are of data type str10 or more. Is there any way I can capture the data type of a variable? Neither describe or codebook seem to have return codes r( ) that would serve this purpose. If I can capture the variable type as a string, e.g., "byte", "str5", "integer" it would easy from there.
Much thanks,
*
* 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/