mber of column of the
>matrix.
>
>Please let me know if this is not clear.
>
>
>Many thanks
>
>
>
>From: Jeff Newmiller
>Sent: 29 April 2017 10:11 PM
>To: r-help@r-project.org; Bert Gunter; abo dalash; R-help
>Subject: Re: [
Break it down. If you have a scalar value val and you want to know if it is in
a vector vec, using val==vec gets you a logical vector as long as vec. You can
use val %in% vec and you get a logical vector as long as val (e.g. 1). If val
is a vector of, say, length 2, then you will get a length 2
I am not a private (or free!) consultant. Post to the r-help if your
question concerns R.
-- Bert
Bert Gunter
On Sat, Apr 29, 2017 at 8:51 AM, abo dalash wrote:
> Hi dear Bert
>
>
> I'm trying to identify number of rows containing 2 specific values.
>
> I tried : which(mydata == 566,235), but
3 matches
Mail list logo