Go to TogaWare.com Home Page. Data Science Desktop Survival Guide
by Graham Williams
Duck Duck Go

Exposition Pipe

Raw We also see here yet another useful pipe operation %$%. This is the exposition pipe which is also useful for commands that do not take a dataset as their argument but instead some columns from the dataset. It evaluates the following function within the context of the dataset passed to it, so that the variables of the dataset become available without the need to quote them
weatherAUS %>%
  filter(Rainfall==0) %$%
  cor(MinTemp, MaxTemp)
## [1] NA

We might otherwise use with.

weatherAUS %>%
  filter(Rainfall==0) %>%
  with(cor(MinTemp, MaxTemp))
## [1] NA

Support further development by purchasing the PDF version of the book.
Other online resources include the GNU/Linux Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 2000-2020 Togaware Pty Ltd. . Creative Commons ShareAlike V4.