Hi,
May be this helps.
dat1<- structure(list(trialnumber = 1:9, Control = c(0L, 1L, 0L, 0L,
1L, 0L, 1L, 0L, 0L), HC = c(0L, 0L, 1L, 1L, 0L, 0L, 0L, 0L, 1L
), LC = c(1L, 0L, 0L, 0L, 0L, 1L, 0L, 1L, 0L), pleasantness = c(3L,
3L, 2L, 2L, 3L, 4L, 3L, 3L, 2L)), .Names = c("trialnumber", "Control",
"H
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
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
3 matches
Mail list logo