functionality of dataForSummaryFunction extended (xUn, trainOcc-obj. allowed)