Skip to content
Prev 275679 / 398506 Next

FOR loop with statistical analysis for microarray data

Looks like you have problems with indexing. In your code, fc is a
vector of length 2, pv is a scalar(it only keeps the last value of the
loop), then you try to cbind different lengths of vectors
(row.names(y1), fc and pv). cbind only works for vectors with the same
length.

I don't know what you want to achieve, but you can keep p.value using
pv[i]. In the previous code, you reassiged pv before pv[i]. So your
1st assignment of pv wiped out pv vector. You need to read helps about
indexing, vectors.

Weidong
On Thu, Oct 27, 2011 at 10:41 AM, Seb <seba.bat at gmail.com> wrote: