[R] Combining 2 arrays into a third array via a function

2009-03-01 Thread Kevski
I'm completely stumped and seem to be going around for 2 days in the wrong circles. Here's what I have in 2 dataframes: dim(params.data); head(params.data, n=2) [1] 284 6 itema1a2 b1 b2 c 11 0.6671587 0.9588642 -3.5 -3.437961 0.2 22 1.1296298 1.4899307 -3.5

Re: [R] Combining 2 arrays into a third array via a function

2009-03-01 Thread David Winsemius
Better to not use c as a variable name. It's such a useful function name. This is what I would have tried: col3 - expand.grid(item=params.data$item, examinee=examinees.data $examinee) col3$p_val - p( c( params.data[ col3[item], c(a1, a2, b1, b2, c) ], examinees.data[