Commit db44b017 authored by Holger Brandl's avatar Holger Brandl

fixed na repacement bug

parent a1494a44
......@@ -150,7 +150,7 @@ fac2char <- function(mydata, convert=names(mydata)[sapply(mydata, is.factor)]){
}
## replace R within pipe change just use ... %>% do(replaceNA(0)) %>% ...
replaceNA <- function(x, withValue) { x[is.na(x)] <- withValue }
replaceNA <- function(x, withValue) { x[is.na(x)] <- withValue; x }
## workaround for biomart
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment