Publications by %>% dreams

Creating a dataset from an image using reticulate in R Markdown

27.09.2021

Last week, a paper started making the Twitter rounds. Selective attention in hypothesis-driven data analysis by Professors Itai Yanai and Martin Lerche looked into whether providing specific hypotheses prevented students from fully exploring a dataset. The authors artificially created a dataset that, when plotted, clearly showed the outline of a ...

3771 sym R (1549 sym/9 pcs) 10 img

Understanding the native R pipe |>

17.01.2022

Or, why mtcars |> plot(hp, mpg) doesn’t work and what you can do about it. Related To leave a comment for the author, please follow the link and comment on their blog: %>% dreams. R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or...

481 sym

Understanding the native R pipe |>

18.01.2022

A while back, I wrote this tweet showing many (not all!) of the ways one might search for a particular set of columns in a data frame using R. Several of these approaches used the {magrittr} pipe (%>%) and the native R pipe (|>), the latter of which has been available since R version 4.1.0. The {magrittr} and native R pipes work in different ways...

9218 sym R (1526 sym/22 pcs) 8 img