Re: [R] Setting NA to blank

2011-05-09 Thread Petr PIKAL
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

Re: [R] Setting NA to blank

2011-05-09 Thread Dat Mai
result. > > Ted. > > On 09-May-11 19:56:39, Dat Mai wrote: > > 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)] <- " " > >> ma

Re: [R] Setting NA to blank

2011-05-09 Thread Ted Harding
n 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

Re: [R] Setting NA to blank

2011-05-09 Thread Dat Mai
te: > > > From: Dat Mai > > Subject: [R] Setting NA to blank > > To: r-help@r-project.org > > Received: Monday, May 9, 2011, 2:46 PM > > Hey All, > > > > I have a matrix m, and I wish to set all the NA values to > > blank. How would I > > do so?

Re: [R] Setting NA to blank

2011-05-09 Thread John Kane
(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

[R] Setting NA to blank

2011-05-09 Thread Dat Mai
Hey All, I have a matrix m, and I wish to set all the NA values to blank. How would I do so? -- Best, Dat Mai PhD Rotation Student Albert Einstein College of Medicine [[alternative HTML version deleted]] __ R-help@r-project.org mailing list h