Re: [R]

About this list Date view Thread view Subject view Author view Attachment view

From: Jason Turner (jasont@indigoindustrial.co.nz)
Date: Thu 20 Mar 2003 - 06:32:43 EST


Message-id: <20030320073243.B24027@camille.indigoindustrial.co.nz>

On Wed, Mar 19, 2003 at 08:11:02PM +0100, volkswirt@gmx.net wrote:
> Dear Colleagues!
> Could you please tell me a command to remove a row or collumn from a
> matrix, to gain from e.g.:
> 1 2 3 4 5
> 6 7 8 9 0
>
> e.g.:
> 1 3 4 5
> 6 8 9 0
>

If mm is your matrix, mm[,-2] will do the above. This is detailed
further in "An Introduction to R", section 2.7 (R-intro.pdf).

Cheers

Jason

-- 
Indigo Industrial Controls Ltd.
64-21-343-545
jasont@indigoindustrial.co.nz

______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:25 EST