[R]

Jason Turner jasont at indigoindustrial.co.nz
Wed Mar 19 20:32:43 CET 2003


On Wed, Mar 19, 2003 at 08:11:02PM +0100, volkswirt at 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 at indigoindustrial.co.nz



More information about the R-help mailing list