Title

dd -- List and/or hilight variables matching name patterns or other characteristics

Syntax

dd [varelist] [using path_el] [, plain hilight(varlist) alpha out(details)]

Description

dd provides a compact listing of variables similar to ds; however, the display is paged so that, no matter how large the dataset, you can always look at a full screen of contiguous variables.
Also, options allow the specification of both variables to display, and variables to highlight.

If no highlighting options are specified, variables from Stata datasets are output in three colors: one for strings, one for numeric variables that have at least one non-missing value labeled (as a proxy for "categorical"),
and one for all other numeric variables. For non-Stata datasets (which require access to StatTransfer), only string and numeric are distinguished.

The variables listed will be those for the data in memory, unless using is specified, in which case the variables will be from the specified data file.

Options

plain causes all variables to be displayed in a single color.

hilight(varlist) causes variables to be displayed in two colors: one for the variables specified in hilight(varlist) and one for the rest.

alpha causes the variables to be listed in alphabetical order, instead of dataset order.

Examples

. dd

. dd some*, hilight(some*subgroup)

. dd using anotherfile

. dd a* b-c using anotherfile, hi(b*)