[R] Table to Data-frame

David Winsemius dwinsemius at comcast.net
Mon Aug 3 16:43:17 CEST 2009


On Aug 3, 2009, at 10:35 AM, Olivier Peron wrote:

> Hello
>
> How to pass from table to data-frame ?
>
Copied from the help page for table:

"The as.data.frame method for objects inheriting from class "table"  
can be used to convert the array-based representation of a contingency  
table to a data frame containing the classifying factors and the  
corresponding entries (the latter as component named by responseName).  
This is the inverse ofxtabs."
-- 

David Winsemius, MD
Heritage Laboratories
West Hartford, CT




More information about the R-help mailing list