> -Original Message-
> From: r-help-boun...@r-project.org
> [mailto:r-help-boun...@r-project.org] On Behalf Of Murat Tasan
> Sent: Sunday, September 27, 2009 4:27 PM
> To: r-help@r-project.org
> Subject: Re: [R] Count number of zeros in a collumn
>
> more genera
more generally, if you want to test for some minimum threshold T on
the number of zeros, try:
> if(length(which(dart[,1977] == 0)) < T) { # some code to handle the
> too-few-zeros-case }
On Sep 27, 4:54 pm, Marcio Resende wrote:
> I have a matrix 700x2000 which is sampled in each cycle from
Hi Marcio,
How about if (min(dart[,1977])==0)...
cheers
milton
On Sun, Sep 27, 2009 at 4:54 PM, Marcio Resende wrote:
>
> I have a matrix 700x2000 which is sampled in each cycle from another matrix
> 788x2000 with the numbers 0,1 and 9
>
> There is one specific collumn of this matrix, dart[,197
I have a matrix 700x2000 which is sampled in each cycle from another matrix
788x2000 with the numbers 0,1 and 9
There is one specific collumn of this matrix, dart[,1977], that usually,
after the samplimg procedure has only 1 and 9 (because the zero frequency in
this collumn is low).
However, when
4 matches
Mail list logo