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" <>
To   <>
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-

 {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. 


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

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