I was experimenting with the pipe
function from dplyr
, and running below code without success -
library(dplyr)
12 %>% ifelse(is.na(.), FALSE, TRUE)
### Error in ifelse(., is.na(.), FALSE, TRUE) : unused argument (TRUE)
Any pointer why I am getting this error? What is the correct approach if I want to use pipe
?