R base function 'is.factor' added to aggregate functions.