Also NROW() and NCOL() exist for situations where two dimensions are assumed or preferred and dim() needs a little help: > NROW(table(letters)) [1] 26 > NCOL(table(letters)) [1] 1 > Dirk -- dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org