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

Gabor Grothendieck ggrothendieck at gmail.com
Tue Jun 27 21:03:41 CEST 2006


See:

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

On 6/27/06, Srinivas Iyyer <srini_iyyer_bio at 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 at 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
>



More information about the R-help mailing list