> as.table(dat1)
> #Error in as.table.default(dat1) : cannot coerce to a table
You _can_ coerce to a matrix first:
as.table( as.matrix(dat1) )
S Ellison
*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.