search for: forfact

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

Did you mean: foreach
2007 Mar 01
1
problem with throwing lines out of matrix
Dear all, again i have a problem with special case of dropping lines out of a matrix. i tried the following, where throwout is a vector of length 18 with simple id values that should be compared to any for (k in 1:length(throwout)) { mymatrix=matrix(mymatrix[-(forfact[k]),],ncol=4) } this didnt work and i tried the following to find the error: mymatrix[,1][mymatrix[,1]==throwout[7]] this returned me a nice value - everything fine... but other same other values for throwout didnt work - because the throwout value simply is not in this matrix. but i need th...