getCrimeSeries {crimelinkage}R Documentation

Generate a list of offenders and their associated crime series.

Description

Generate a list of offenders and their associated crime series.

Usage

getCrimeSeries(offenderID, offenderTable, restrict = NULL, show.pb = FALSE)

Arguments

offenderID

vector of offender IDs

offenderTable

offender table that indicates the offender(s) responsible for solved crimes. offenderTable must have columns named: offenderID and crimeID.

restrict

if vector of crimeID, then only include those crimeIDs in offenderTable. If NULL, then return all crimes for offender.

show.pb

(logical) should a progress bar be displayed

Value

List of offenders with their associated crime series.

See Also

makeSeriesData, getCriminals, getCrimes

Examples

data(offenders)

 getCrimeSeries("O:40",offenders)
 getCrimeSeries(c("O:40","O:3"),offenders)  # list of crime series from multiple offenders

[Package crimelinkage version 0.0.4 Index]