Dear all,
given I have a data.frame in a format like this
mydf - data.frame(age=rep(1:3,5),
year=c(rep(1996,3), rep(1997,3), rep(1998,3),
rep(1999,3), rep(2000,3)),
income=1:15)
mydf
Now I convert it to some 2D-frequency table like
On Mon, 29 Jan 2007, Roland Rau wrote:
Dear all,
given I have a data.frame in a format like this
mydf - data.frame(age=rep(1:3,5),
year=c(rep(1996,3), rep(1997,3), rep(1998,3),
rep(1999,3), rep(2000,3)),
income=1:15)
mydf
This is what I was hoping for!
Thanks,
Roland
On 1/29/07, Achim Zeileis [EMAIL PROTECTED] wrote:
On Mon, 29 Jan 2007, Roland Rau wrote:
Dear all,
given I have a data.frame in a format like this
mydf - data.frame(age=rep(1:3,5),
year=c(rep(1996,3),
Or equivalently:
as.data.frame.table(mymatrix)
On 1/29/07, Achim Zeileis [EMAIL PROTECTED] wrote:
On Mon, 29 Jan 2007, Roland Rau wrote:
Dear all,
given I have a data.frame in a format like this
mydf - data.frame(age=rep(1:3,5),
year=c(rep(1996,3),