search for: vehtyp

Displaying 1 result from an estimated 1 matches for "vehtyp".

Did you mean: vehtype
2009 Jan 26
1
reshape problem: id and variable names not being recognized
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 levels "Car","Truck": 1 1 2 1 1 2 1 1 1 1 ... $ Year : Factor w/ 6 levels "2003","2004",..: 5 1 5 6 6 2 2 3 2 5 ... $ variable: Factor w/ 1 level "mpg": 1 1 1 1 1 1 1 1 1 1 ... $ value : num 22.4 21.5 22.6 22.4 25 ... For the p...