Returns Names of Columns in a Dataset

DESCRIPTION:

Gives the names of the columns in a 1- or 2-dimensional dataset.

USAGE:

name.cols(x) 

REQUIRED ARGUMENTS:

x
1- or 2-dimensional dataset whose column names will be returned.

VALUE:

The names of the columns in x. If x is a 1-dimensional dataset, "".

SEE ALSO:

, , , , .

EXAMPLES:

repair.years <- name.cols(auto.stats)[3:4]