getpattern: Determine the patterns from the 2014 Verizon DBIR

View source: R/matrix.R

getpatternR Documentation

Determine the patterns from the 2014 Verizon DBIR

Description

given a verisr object, this will determine which pattern the incident is in (or "Other" if no pattern is matched). Note the returned vector will be a factor with ordered levels for arranging the patterns in an order.

Usage

getpattern(veris)

Arguments

veris

a verisr object

Examples

data(veris.sample)

# produces a vector with 1-to-1 mapping to verisr object
pat <- getpattern(veris.sample)

# can summarize the results
table(pat)

vz-risk/verisr documentation built on Aug. 5, 2023, 4:34 a.m.