Skip to content
Snippets Groups Projects
Commit db44b017 authored by Holger Brandl's avatar Holger Brandl
Browse files

fixed na repacement bug

parent a1494a44
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment