search for: tp3218729p3218729

Displaying 1 result from an estimated 1 matches for "tp3218729p3218729".

2011 Jan 15
2
Rounding variables in a data frame
...3,d4) x= NULL for (i in 1:ncol(d)){ if (colnames(d)[i] =="d3"){x[i] = d[i] } else { x[i] = round(d[i])} out = do.call(cbind,x) } colnames(out) = colnames(d) Thanks and regards Pete -- View this message in context: http://r.789695.n4.nabble.com/Rounding-variables-in-a-data-frame-tp3218729p3218729.html Sent from the R help mailing list archive at Nabble.com.