[R] R-code help for filtering with for loop

2009-03-02 Thread John Antonydas Gaspar
Dear Sir / Madam, I am new for R coding. Kindly help me out in sorting out the following problem. There are 50 rows with six coloumns(you could see in the attached .txt file). I wish to go for filtering this 50 rows for any one of the six coloumns satisfying the value >= 64. I need to have a fin

Re: [R] R-code help for filtering with for loop

2009-03-02 Thread ONKELINX, Thierry
cht- Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Namens John Antonydas Gaspar Verzonden: maandag 2 maart 2009 11:31 Aan: r-help@r-project.org Onderwerp: [R] R-code help for filtering with for loop Dear Sir / Madam, I am new for R coding. Kindly help me out in

Re: [R] R-code help for filtering with for loop

2009-03-02 Thread David Winsemius
The apply function which can work on either a row-wise of column-wise basis can be used with max and ">" can return a logical vector that will let you separate the rows into those with and without a maximum greater than 60. > datax <- matrix(rnorm(300)*30,nrow=50) > datax <- as.data.frame(