Ah, this clarifies what the reshape documentation referred to as the  
"timevar" argument. I'd gone wrong because I'd been confusing  
reshape's functionality with that of SPSS's cassestovars command,  
which is where I'm coming from. Your recommendation seems to lead to  
exactly that I was looking for. Thanks, Phil!


On Mar 5, 2010, at 10:05 PM, Frank Tamborello wrote:

> Frank -
>     I think you need to create a composite time variable
> to do what you want to do:
>
> exp1.r5$key = with(exp1.r5,paste(CannonAngle,CannonOriB,
>                     
> CannonOriR,nRedPelelts,TargetColor,tbearing,sep='.'))
> exp1.r5.use = subset(exp1.r5,select=-c(CannonAngle,CannonOriB,
>                    CannonOriR,nRedPelelts,TargetColor,tbearing))
> exp1.r5.wide <- reshape(exp1.r5.use, idvar="Subject", direction =  
> "wide",
>         v.names="RT", timevar = 'key')
>
>  					- Phil Spector
>  					 Statistical Computing Facility
>  					 Department of Statistics
>  					 UC Berkeley
>  					 spector@stat.berkeley.edu




	[[alternative HTML version deleted]]

