Value column and a
Group column,
determine which values belong to a given
Membership
as defined by a set of
Group values.
This function requires the bigdata library section to be loaded.
bd.relational.divide(data, value, group, membership)
bdFrame or
data.frame.
NULL, this specifies the first column
that is not the
group column.
NULL, this specifies all of the data set columns.
group levels that define membership.
If
NULL, this specifies all of
group's
levels.
bdFrame or
data.frame containing
the
value elements that satisfy the
membership.
This function takes two inputs (
bdFrame or
data.frame
). The output contains the
value
elements that satisfy the
membership
.
## Get the weekdays with Light and Moderate traffic
traffic <- c("Light", "Moderate", "Heavy")
week.congestion <- data.frame(weekdays=c(1,2,3,1),
traffic=as.factor(traffic[c(1,2,2,2)]))
bd.relational.divide(week.congestion, 1, "traffic", c("Light", "Moderate"))