ggvis
R Conditional evaluation when using the pipe operator %>%
Here is a quick example that takes advantage of the . and ifelse: X<-1 Y<-T X %>% add(1) %>% { ifelse(Y ,add(.,1), . ) } In the ifelse, if Y is TRUE if will add 1, otherwise it will just return the last value of X. The . is a stand-in which tells the function … Read more