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) =
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
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
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
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
5 matches
Mail list logo