What is %<>% and how is it different than %>%?

I came across a piece of code where I see a different operator has been %<>% used(below code)?
can someone help me with WHAT IS IT CALLED and know more on the same and how it works different than the regular piping operator %>% ?
xx <- DF %>%
dplyr::ungroup() %>%
dplyr::select(VAR1, VAR2, VAR3) %>%
unique()
xx %<>%
dplyr::group_by(VAR1, VAR2) %>% count(VAR2)

to access the documentation type :

 ?`%<>%`

Its called the assignment pipe, and it works like a normal pipe but assigns the rhs to the left on completion. In your code here, the xx will be modified by the group and count, and not just contribute to it

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.