Full Matrix Mapping - Aggregation into classes example supporting tool script code

localinformant vehicleType[] = create (; object=set, delimiter=",", \
	allowDuplicate=on, \
	elemNamesFromColNum=1, firstLine=2, \
	lastLine=4, \
	file=$fullFileName)

localinformant vehicleAge[] = create (; object=set, delimiter=",", \
	allowDuplicate=on, \
	elemNamesFromLineNum=1, firstCol=2, \
	lastCol=8, \
	file=$fullFileName)

local vehicles[vType,va] = create (; dim=vehicleType, dim=vehicleAge, \
	dataFormat="odometer", \
	delimiter=",", \
	firstLine=2, firstCol=2, \
	ignoreExtraLines=on, \
	ignoreExtraCols=on, \
	file=$fullFileName)

localinformant ageClass[] = create (; object=set, \(note what is in this informant instead of showing the code to construct it)
	desc="new young and old age classes", \
	elemName1="new", \
	elemName2="young", \
	elemName3="old")

local vaToac[ageClass,vehicleAge] = create (; dim=ageClass, dim=vehicleAge, format=mapping, \
	0 -> new, \
	1 -> new, \
	2 -> young, \
	3 -> young, \
	4 -> young, \
	5 -> old, \
	6 -> old)