[R] Reshaping a table - PS

S Ellison S.Ellison at LGCGroup.com
Thu Apr 11 18:13:06 CEST 2013


 

> 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}}



More information about the R-help mailing list