Re: [R] Converting an ftable (contingency table) to a dataframe in R

2011-06-23 Thread Richard M. Heiberger
Use as.data.frame() See ?ftable for details. ftable(Titanic, row.vars = 1:3) as.data.frame(.Last.value) Rich On Thu, Jun 23, 2011 at 10:58 PM, Mark Alen wrote: > I am generating an ftable (by running ftable on the results of a xtabs > command) and I am getting the following. >

[R] Converting an ftable (contingency table) to a dataframe in R

2011-06-23 Thread Mark Alen
I am generating an ftable (by running ftable on the results of a xtabs command) and I am getting the following.                                                                    Var1  Var2 date                 group                                                2007-01-01          q1