Drop Columns(s) from a Dataset

DESCRIPTION:

Removes a column (or columns) from a 2-dimensional dataset.

USAGE:

remove.col(target, target.column, count) 

REQUIRED ARGUMENTS:

target
2-dimensional dataset from which the column(s) will be removed.
target.column
integer or character (name-matching) value specifying the column of target at which the removal is to be done. To specify the last column of target, use "@END" or "".
count
integer value specifying the number of columns to be removed.

VALUE:

The target dataset with the column(s) removed.

SEE ALSO:

, , , , , .

EXAMPLES:

# create a dataset with all but the "Weight" and "Disp." columns of fuel.frame 
fuel.no.weight.or.disp <- remove.col(fuel.frame, "Weight", 2)