Re: [R] reshape problem: id and variable names not being recognized

2009-01-26 Thread jim holtman
Look at your 'str(mdat)' and you will see that there is not a variable call 'mpg'; it is one of the levels of the 'variable'. On Mon, Jan 26, 2009 at 11:38 AM, MW Frost wrote: > Hi everyone. Long time listener, first-time caller here. > > I have a data set that's been melted with the excellent re

[R] reshape problem: id and variable names not being recognized

2009-01-26 Thread MW Frost
Hi everyone. Long time listener, first-time caller here. I have a data set that's been melted with the excellent reshape package, but I can't seem to cast it the way I need to. Here's the melted data's structure: > str(mdat) 'data.frame': 6978 obs. of 4 variables: $ VehType : Factor w/ 2 leve