Re: [R] Newbie Question -- Remove entire column in a matrix

2008-01-15 Thread My Coyne
ROTECTED] Subject: RE: [R] Newbie Question -- Remove entire column in a matrix On Tue, 15 Jan 2008, My Coyne wrote: > Really Cool. THANK YOU > > Both works, only that New.mat is t is being transposed. So, I added a > minor change: > > New.mat <- matrix (mat [,colSums(mat==0) =

Re: [R] Newbie Question -- Remove entire column in a matrix

2008-01-15 Thread Charles C. Berry
ums( mat==0 ) == 0, drop=FALSE ] Chuck > > > > > > > -Original Message- > From: Charles C. Berry [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 15, 2008 12:34 PM > To: My Coyne > Cc: [EMAIL PROTECTED] > Subject: Re: [R] Newbie Question -- Remove entir

Re: [R] Newbie Question -- Remove entire column in a matrix

2008-01-15 Thread My Coyne
PM To: My Coyne Cc: [EMAIL PROTECTED] Subject: Re: [R] Newbie Question -- Remove entire column in a matrix On Tue, 15 Jan 2008, My Coyne wrote: > > > I'm ordering "The R Book" and hope to learn a lot more about R. In a > meantime, I have a matrix of digits and I w

Re: [R] Newbie Question -- Remove entire column in a matrix

2008-01-15 Thread Charles C. Berry
On Tue, 15 Jan 2008, My Coyne wrote: > > > I'm ordering "The R Book" and hope to learn a lot more about R. In a > meantime, I have a matrix of digits and I would like to look for a column > that contains zeroes and remove the entire column from the matrix. I can > write a piece of R code to do th

[R] Newbie Question -- Remove entire column in a matrix

2008-01-15 Thread My Coyne
I'm ordering "The R Book" and hope to learn a lot more about R. In a meantime, I have a matrix of digits and I would like to look for a column that contains zeroes and remove the entire column from the matrix. I can write a piece of R code to do that (and it works); however, I think the R-exper