Statalist The Stata Listserver


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

st: RE: Function that returns variable type (string, etc.)?


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Function that returns variable type (string, etc.)?
Date   Fri, 17 Nov 2006 15:19:48 -0000

-format- is a matter of presentation, not contents. 

-search type- points (among other things) to 
-help macro- and that in turn to -help extended_fcn-
and 

 {local | global} macname :  type varname

See also help for -ds-, which at the cost of 
some interpretative overhead, gives you other tools
in this territory. 

Nick 
[email protected] 

Rachel
 
> I'm looking for a function that returns the type of a given variable.
> Specifically, I'd like to know if each variable in a list is a string
> or not.
> 
> This seems fairly obvious, but I couldn't find it in the documentation
> under "Format" or any of the related entries.

*
*   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