getpattern | R Documentation |
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.
getpattern(veris)
veris |
a verisr object |
data(veris.sample)
# produces a vector with 1-to-1 mapping to verisr object
pat <- getpattern(veris.sample)
# can summarize the results
table(pat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.