Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65601

describe a variable in a data file; obtain its type

$
0
0
Hello,
I haven't checked in at Stata Forum in a while, so I don't know if this has been discussed lately.

I want to describe a variable in a file, and obtain its type. I can get this information easily from the in-memory dataset, but not from a file. If I describe the variable in the file...
des somevar using somefile
I get to see the type, but I don't know how to capture that information -- if it is possible.

Of course, I can -use- the file, and capture the desired information, but I'd like to know if I can avoid that route.

I use Stata 13.
Thanks
--David

Viewing all articles
Browse latest Browse all 65601


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>