[R] how to delete a matrix column

Rolf Turner rolf at math.unb.ca
Tue Mar 2 19:38:58 CET 2004


Aimin Yan wrote:

> I am new to R, How to delete a matrix column.

e.g. y <- x[,-5] deletes column 5

I was going to point out to the inquirer where this feature
is documented --- but I can't bleedin' find it!!!

Can anyone tell me?  I tried ?"[" but got no joy that
I could discern.

				cheers,

					Rolf Turner
					rolf at math.unb.ca




More information about the R-help mailing list