Hello, Dominic,

untested:

data <- lapply( data, function( x) x[ x == ""] <- NA

 Hth  --  Gerrit


On Tue, 8 Jan 2013, Dominic Roye wrote:

Hello R-Helpers,

I have a slight problem with the expresion data[data==""] <- NA which works
well for a data.frame. But now i must use the same for a list of
data.frames.

My idea is data[[]][data==""] but it don“t work.

Thanks!!

Dominic
______________________________________________
R-help@r-project.org 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.

Reply via email to