getCrimes {crimelinkage}R Documentation

Generate a list of crimes for a specific offender

Description

Generate a list of crimes for a specific offender

Usage

getCrimes(offenderID, crimedata, offenderTable)

Arguments

offenderID

an offender ID that is in offenderTable

crimedata

data.frame of crime incident data. crimedata must be a data.frame with a column named: crimeID

offenderTable

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

Value

The subset of crimes in crimedata that are attributable to the offender named offenderID

See Also

getCrimeSeries

Examples

data(crimes)
 data(offenders)

 getCrimes("O:40",crimes,offenders)

[Package crimelinkage version 0.0.4 Index]