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



CLICK HERE TO VISIT THE UPDATED SURVIVAL GUIDE

Exposition Pipe

REVIEW 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
ds %>%
  filter(rainfall==0) %$%
  cor(min_temp, max_temp)
## [1] NA

We might otherwise use with.

ds %>%
  filter(rainfall==0) %>%
  with(cor(min_temp, max_temp))
## [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.