Hi
> Re: [R] Setting NA to blank
>
> I asked because I thought it'd solve an issue I had. I was actually
being
> quite rash in asking this question and for that, I apologize.
>
> I wanted to know because I was attempting to create a heatmap where the
NA
> values wo
I asked because I thought it'd solve an issue I had. I was actually being
quite rash in asking this question and for that, I apologize.
I wanted to know because I was attempting to create a heatmap where the NA
values would not be shown while all the outputs with actual numerical value
will be sho
John Kane's reply sums it up! (Though you could use "",
instead of " ", which would give you an "empty string"
instead of the "space" character; but the resulting
matrix would still consist entirely of "character"
elements).
However, the real reason I am following up is to ask
why you want the bla
Thank you kind sir!
On Mon, May 9, 2011 at 3:25 PM, John Kane wrote:
>
> (mat <- matrix(c(1,2,3,NA),2))
> mat[is.na(mat)] <- " "
> mat
>
> But if you have a numerical matrix it coverts the matrix to character.
>
> --- On Mon, 5/9/11, Dat Mai wrote:
>
> > From: Dat Mai
> > Subject: [R] Setti
(mat <- matrix(c(1,2,3,NA),2))
mat[is.na(mat)] <- " "
mat
But if you have a numerical matrix it coverts the matrix to character.
--- On Mon, 5/9/11, Dat Mai wrote:
> From: Dat Mai
> Subject: [R] Setting NA to blank
> To: r-help@r-project.org
> Received: Monday, May 9, 2011, 2:46 PM
> Hey A
5 matches
Mail list logo