2021年1月24日星期日

can I use pipes | in R, not %>%

This has probably been asked but I can't find it. In R, I want to use the | pipe instead of %>%.

I'm used to Linux, and it would be me happy if I could do like this with dplyr or something similar.

Is it possible to use this pipe operator?

df | filter(state == "New York")  
https://stackoverflow.com/questions/65873759/can-i-use-pipes-in-r-not January 25, 2021 at 01:27AM

没有评论:

发表评论