I would like to replace all null ("") in a column of a matrix to NA, how would I do that without a do loop? Thanks --mc [[alternative HTML version deleted]]
Try this: x[x==""] <- NA On 01/02/2008, My Coyne <mcoyne at boninc.com> wrote:> I would like to replace all null ("") in a column of a matrix to NA, how > would I do that without a do loop? > > Thanks > > --mc > > > > > > > > > > > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Henrique Dallazuanna Curitiba-Paran?-Brasil 25? 25' 40" S 49? 16' 22" O