Fabio, That is not a _minimally reproducible example_ as we do not have your data. This write-up may be helpful: http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org