Would it be possible to turn as.factor into an S3 generic? It seems to be one of the few coercion methods that aren't already generic. Hadley -- http://had.co.nz/