Select Rows Using a Relational Restriction

DESCRIPTION:

Select the rows that satisfy an expression.

This function requires the bigdata library section to be loaded.

USAGE:

bd.relational.restrict(data, restriction)

REQUIRED ARGUMENTS:

data
a bdFrame or data.frame.
restriction
an expression in the row-oriented which is evaluated to determine whether each row should be selected.

OPTIONAL ARGUMENTS:

VALUE:

A bdFrame or data.frame, of the same type as data, with rows fulfilling the restriction included.

DETAILS:

This function determines whether each row should be selected by evaluating the restriction. The result should be a logical value.

SEE ALSO:

EXAMPLES:

## Get only those rows where Weight>3000.
bd.relational.restrict(fuel.frame, "Weight>3000")
## Remove rows where Type=="Van".
bd.relational.restrict(fuel.frame, "Type=='Van'")