Clear Column(s) in a Dataset

DESCRIPTION:

Clears a column (or columns) in a 1- or 2-dimensional dataset.

USAGE:

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

REQUIRED ARGUMENTS:

target
1- or 2-dimensional dataset for which the column(s) will be cleared. A 1-dimensional dataset is considered to be a single, unnamed column.
target.column
integer or character (name-matching) value specifying the column of target at which the clearing is to be done. To specify the last column of target, use "@END" or "".
count
integer value specifying the number of columns to be cleared.

VALUE:

The target dataset with the column(s) cleared; for each cleared column, the new value(s) will be a vector of "" if its data type is "character", a vector of NA otherwise.

SEE ALSO:

, , , , , .

EXAMPLES:

# clears all columns of swiss.x 
swiss.0 <- clear.col(swiss.x, 1, count.cols(swiss.x))