compareCategorical: Make evidence variables from categorical crime data
Description
Compares categorical crime data to check if they match.
Usage
compareCategorical(C1, C2, levs, binary = FALSE)
Arguments
C1
length n categorical values of crime attributes
C2
length n categorical values of crime attributes
levs
the levels of all possible values
binary
(logical) match/no match or all combinations
Value
if binary=TRUE: 1 for match, 0 for non-matches;
if binary=FALSE: factor vector of merged values (in form of f1:f2)