search for: oldma

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

Did you mean: oldmm
2007 Feb 27
5
Multiple conditional without if
...h has about 500 rows and 6 columns. now i want to kick some data out. i want create a new matrix which is basically the old one except for all entries which have a 4 in the 5 column AND a 1 in the 6th column. i tried the following but couldnĀ“t get a new matrix, just some wierd errors: newmatrix=oldmatrix[,2][oldmatrix[,5]==4]&&oldmatrix[,2][oldmatrix[,6] ==1] all i get is: numeric(0) does anybody have an idea how to fix this one ? thx in advance matthias [[alternative HTML version deleted]]