Learn R Programming

scanstatistics (version 0.1.0)

score_zone_sums: Sums the numerator and denominator terms over all locations in each zone.

Description

Computes the sum of the numerator and denominator terms over all locations in each zone, as part of the score calculation.

Usage

score_zone_sums(table, zones)

Arguments

table

A data.table with columns location, duration, num, denom; the output from negbin_score_terms.

zones

A set of zones, each zone itself being a set containing locations. Locations should be encoded as integers.

Value

A data.table with columns zone, duration, num, denom.