Speaking Stata: Finding variables
Nicholas J. Cox
Department of Geography
Durham University
Durham City, UK
n.j.cox@durham.ac.uk
|
Abstract. A standard task in data management is producing a list of variable
names showing which variables have specific properties, such as being of string
type, or having value labels attached, or having a date format. A first-principles
strategy is to loop over variables, checking one by one which have the property or
properties concerned. I discuss this strategy in detail with a variety of examples.
A canned alternative is offered by the official command ds or by a new command,
findname, published formally with this column.
View all articles by this author:
Nicholas J. Cox
View all articles with these keywords:
findname, ds, variable names, variable labels, value labels, types, formats, characteristics, data management
Download citation: BibTeX RIS
Download citation and abstract: BibTeX RIS
Contact StataCorp
Contact service@stata-journal.com
if you have questions about the Stata Journal.
© Copyright 2001–2010 StataCorp LP. Terms of use. Privacy notice.
|