[R] removing rows from matrix

2008-05-02 Thread Monna Nygård
Hi, I have a problem regarding matrix handeling. I am working with a serie of matrixes containing several columns. Now I would like to delete those rows of the matrixes,that in one of the columns contain values less than 50 or greater than 1000. How would this be possible, I have tried to

Re: [R] removing rows from matrix

2008-05-02 Thread Richard . Cotton
Hi, I have a problem regarding matrix handeling. I am working with a serie of matrixes containing several columns. Now I would like to delete those rows of the matrixes,that in one of the columns contain values less than 50 or greater than 1000. Try this: m - matrix(runif(150, 0, 1050),