add_cumulative: Add cumulative numbers of positive and negative matches to a...

View source: R/Rule_building.R

add_cumulativeR Documentation

Add cumulative numbers of positive and negative matches to a list of rules

Description

Given a Rules data frame, arranges it by a score and rule length and computes the cumulative number of positive and negative matches identified by the rules.

Usage

add_cumulative(data, order_by = "score", rule_var = "rule")

Arguments

data

A Rules data frame.

order_by

A column in data according to which order rules in descending order.

rule_var

The name of the column in data which stores the rules.

Value

The Rules data frame with two more columns for the cumulative numbers of positive and negative matches.


bakaburg1/BaySREn documentation built on March 30, 2022, 12:16 a.m.