Thank you kind sir! On Mon, May 9, 2011 at 3:25 PM, John Kane <[email protected]> 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 <[email protected]> wrote: > > > From: Dat Mai <[email protected]> > > Subject: [R] Setting NA to blank > > To: [email protected] > > 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? > > > > -- > > Best, > > Dat Mai > > PhD Rotation Student > > Albert Einstein College of Medicine > > -- Best, Dat Mai PhD Rotation Student Albert Einstein College of Medicine [[alternative HTML version deleted]] ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

