Skip to content
Prev 76965 / 398503 Next

how to do something like " subset(mat, ("col1">4 & "col2">4)) "

maybe something like this:

subset(mat, mat[, 2] > 4 & mat[, 3] > 4)


I hope it helps.

Best,
Dimitris

----
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/16/336899
Fax: +32/16/337015
Web: http://www.med.kuleuven.be/biostat/
     http://www.student.kuleuven.be/~m0390867/dimitris.htm


----- Original Message ----- 
From: "Florence Combes" <fcombes at gmail.com>
To: <r-help at stat.math.ethz.ch>; <r-devel-request at stat.math.ethz.ch>
Sent: Friday, September 09, 2005 4:09 PM
Subject: [R] how to do something like " subset(mat, ("col1">4 & 
"col2">4)) "
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm