Skip to contents

Get the number of cases that satisfy a rule

Usage

numCases(rule, df, Y = NULL, y_val = 1)

Arguments

rule

rule to check: must be in the format feature_value or feature_value_neg

df

data to check

Y

if included, checks that case's Y=y_val

y_val

value Y should take

Value

number of cases in data that satisfies rule