s-news
[Top] [All Lists]

find row&col

To: s-news@lists.biostat.wustl.edu
Subject: find row&col
From: Catalina Mesina <cmesina@cs.vu.nl>
Date: Wed, 23 Oct 2002 14:46:33 +0200
Dear all,

I have a very simple question.
Suppose that we have a matrix

 m<-matrix(1:12,ncol=3)
> m
     [,1] [,2] [,3] 
[1,]    1    5    9
[2,]    2    6   10
[3,]    3    7   11
[4,]    4    8   12

Is there any function in Splus that can give me which is the line and the 
column where element 10, for example, is situated?

Catalina

<Prev in Thread] Current Thread [Next in Thread>