Commit ac418c05 authored by Holger Brandl's avatar Holger Brandl

added na-replace method

parent 8cc38478
......@@ -149,6 +149,9 @@ fac2char <- function(mydata, convert=names(mydata)[sapply(mydata, is.factor)]){
return(newdata)
}
## replace R within pipe change just use ... %>% do(replaceNA(0)) %>% ...
replaceNA <- function(x, withValue) { x[is.na(x)] <- withValue }
## workaround for biomart
## Deprecated: load dplyr after biomart to avoid this problem
......
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