Re: [R] Reading a set of values from a numeric matrix

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Wed 28 Jun 2006 - 05:03:41 EST

See:

http://thread.gmane.org/gmane.comp.lang.r.general/64473/focus=64487

On 6/27/06, Srinivas Iyyer <srini_iyyer_bio@yahoo.com> wrote:
> Dear group,
> I have a matrix with (190,20000) dimensions.
>
> The values range from : -973.8149 to 807.4688
>
> I want to select the values less than -200 and want to
> know what are the names of row and columns.
>
> m1 m2 m3 m4 ...... mn
> k1
> k2
> k3
> k4
> .
> .
> .
> kj
>
>
>
> >mymat[1:4,1:4]
>
> 1-Dec 1-Mar 1-Sep 10-Sep
> m1 -0.4220701 -0.94359666 -421.06729 -1.8525286
> m2 0.4408303 -250.706960 0.6422206 0.6344322
> m3 0.4005077 -430.076784 1.3653584 0.4677905
> m4 5.0358915 6.40544709 -430.67964 3.2017410
>
>
> I want to select the pairs:
>
> m2 1-Mar -250.706960
> m3 1-Mar -430.076784
> m1 1-Sep -421.06729
> m4 1-Sep -430.67964
>
>
> How can I do it. Could any one help me out. Please.
>
> Thanks
> sri
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jun 28 05:17:37 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 28 Jun 2006 - 06:12:41 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.