[R] replacing NaN for every attribute in my data
mishkind at gmail.com
Wed Jul 11 20:36:48 CEST 2012
I have a list called ds which has the following attributes:
 "adj.r.squared" "fstatistic" "intercept" "slope"
 "std.error" "tstatistic"
I want to replace all the NaN is ds with 0, and after searching past posts I
found I can hardcode it like this:
But, there has to be a more elegant/general solution. I've tried messing
around with lapply but can't seem to get it to work.
View this message in context: http://r.789695.n4.nabble.com/replacing-NaN-for-every-attribute-in-my-data-tp4636160.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help