getpattern: Determine the patterns from the 2014 Verizon DBIR

Description Usage Arguments Examples

View source: R/matrix.R

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

1
getpattern(veris)

Arguments

veris

a verisr object

Examples

1
2
3
4
5
6
7
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 Dec. 11, 2018, 1:33 a.m.