There is a bug in the parcelAllocation code. When run on a single factor the function kicks back an error ("Error in if (Npp[Mat] == Npp[Mat - 1]) { :
missing value where TRUE/FALSE needed").
Bug has been identified and fixed. The check to make sure items in the same parcel were assigned to the same factor cause a problem with a single factor (when this isn't an issue).
There is a bug in the parcelAllocation code. When run on a single factor the function kicks back an error ("Error in if (Npp[Mat] == Npp[Mat - 1]) { : missing value where TRUE/FALSE needed").
I'm looking into it.