Questions tagged «ggvis»

5
R使用管道运算符时的条件评估%>%
当使用管道操作符%>%与包,如dplyr,ggvis,dycharts,等,我该怎么办了一步条件?例如; step_1 %>% step_2 %>% if(condition) step_3 这些方法似乎不起作用: step_1 %>% step_2 if(condition) %>% step_3 step_1 %>% step_2 %>% if(condition) step_3 有很长的路要走: if(condition) { step_1 %>% step_2 }else{ step_1 %>% step_2 %>% step_3 } 有没有所有冗余的更好方法吗?
93 r  dplyr  ggvis  magrittr 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.