Remove Data Set Columns
DESCRIPTION:
Remove one or more columns from a data set.
This function requires the bigdata library section to be loaded.
USAGE:
bd.filter.columns(data, keep = NULL, drop = NULL)
REQUIRED ARGUMENTS:
- data
-
input data set, a
bdFrame
or
data.frame
.
- keep
-
names or numbers of columns to be output. If NULL and
drop
is
NULL
, select all columns.
- drop
-
names or numbers of columns to be excluded from the output. All other column will be output. Ignored if
keep
is specified.
VALUE:
A copy of the input data, with the specified columns retained or removed.
EXAMPLES:
## Remove column "Weight".
bd.filter.columns(fuel.frame, drop="Weight")