Re: [R] Matrix-list table conversion+nrwos with specefic values.

2017-04-29 Thread Jeff Newmiller
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: [

Re: [R] Matrix-list table conversion+nrwos with specefic values.

2017-04-29 Thread Jeff Newmiller
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

Re: [R] Matrix-list table conversion+nrwos with specefic values.

2017-04-29 Thread Bert Gunter
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