Re: [R] counting columns that fulfill specific criteria

2011-06-24 Thread Nick Sabbe
Links 653, 9000 Gent ring: 09/264.59.36 -- Do Not Disapprove > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of pguilha > Sent: vrijdag 24 juni 2011 13:15 > To: r-help@r-project.org > Subject: [R] coun

[R] counting columns that fulfill specific criteria

2011-06-24 Thread pguilha
Hi, I have a matrix (pwdiff in the example below) with ~48 rows and 780 columns. For each row, I want to get the percentage of columns that have an absolute value above a certain threshold "t". I then want to allocate that percentage to matrix 'perc' in the corresponding row. Below is my attem