s-news
[Top] [All Lists]

Re: [S] Element processing in a table/matrix

To: Steve Friedman <friedman@gis.umn.edu>
Subject: Re: [S] Element processing in a table/matrix
From: Prof Brian D Ripley <ripley@stats.ox.ac.uk>
Date: Fri, 30 Apr 1999 09:30:57 +0100 (BST)
Cc: s-news@wubios.wustl.edu
In-reply-to: <3728E3B8.324B5436@gis.umn.edu>
Sender: owner-s-news@wubios.wustl.edu
On Thu, 29 Apr 1999, Steve Friedman wrote:

> I have a matrix and I need to multiply every element in the matrix the
> column number of the
> matrix.  Solutions seem to be avoiding me, help is greatly appreciated.

If m is a matrix, you want m * col(m).  Simple!

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

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