-------------------------------------------------------------------------------
help for dlist, duplist 
-------------------------------------------------------------------------------

List with variable labels

dlist [varlist] [if exp] [in range] [ , nolabel noobs name(#) varlabel(#) spaces(#) notrim ]

duplist [varlist] [if exp] [in range] [ , nolabel name(#) varlabel(#) spaces(#) notrim ]

by varlist: may be used with dlist or duplist; see help by.

Description

dlist hybridises describe and list insofar as it lists data and can show variable labels too. dlist is best for occasions when you want lists of a small number of observations and a reminder of variable labels; otherwise it may appear slow and repetitive.

duplist is a variant which lists any duplicates on the variables specified (or by default on all variables) just once. All the observation numbers of any duplicate class are given. The order used is the sort order on the variables in question.

Options

nolabel specifies that numeric values are to be shown rather than any value labels.

noobs specifies that display of observation numbers should be suppressed.

name(#) specifies that variable names should be abbreviated to at most # characters. As a special case, name(0) suppresses the display of variable names.

varlabel(#) specifies that variable labels should be abbreviated to at most # characters. As a special case, varlabel(0) suppresses the display of variable labels.

spaces(#) specifies the number of spaces between columns of output. The default is 3.

notrim specifies that string values should not be trimmed of leading and trailing spaces. The default is to show values without such spaces.

Examples

. dlist in 1

. dlist in 1, n(0)

. duplist foreign rep78

. by foreign: duplist rep78, n(0)

Author

Nicholas J. Cox, Durham University, UK n.j.cox@durham.ac.uk

Acknowledgments

dlist grew out of a question from Miguel Ampudia Fraile. Martyn Sherriff alerted me to a problem with some variables whose names began with underscores. duplist grew out of a question from Holly Wright. Robert Wells found a bug.

Also see

On line: help for describe, list, duplicates