Assign function 'asFactorDS' added.