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

added na-replace method

parent 8cc38478
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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