Blog Archives

seplyr update

July 19, 2017
By

The development version of my new R package seplyr is performing in practical applications with dplyr 0.7.* much better than even I (the seplyr package author) expected. I think I have hit a very good set of trade-offs, and I have now spent significant time creating documentation and examples. I wish there had been such … Continue reading seplyr update

Read more »

dplyr 0.7 Made Simpler

July 15, 2017
By

I have been writing a lot (too much) on the R topics dplyr/rlang/tidyeval lately. The reason is: major changes were recently announced. If you are going to use dplyr well and correctly going forward you may need to understand some of the new issues (if you don’t use dplyr you can safely skip all of … Continue reading dplyr 0.7 Made Simpler

Read more »

Better Grouped Summaries in dplyr

July 12, 2017
By

For R dplyr users one of the promises of the new rlang/tidyeval system is an improved ability to program over dplyr itself. In particular to add new verbs that encapsulate previously compound steps into better self-documenting atomic steps. Let’s take a look at this capability. First let’s start dplyr. suppressPackageStartupMessages(library("dplyr")) packageVersion("dplyr") ## [1] '0.7.1.9000' A … Continue reading Better Grouped Summaries in dplyr

Read more »

What is magrittr’s future in the tidyverse?

July 10, 2017
By
What is magrittr’s future in the tidyverse?

For many R users the magrittr pipe is a popular way to arrange computation and famously part of the tidyverse. The tidyverse itself is a rapidly evolving centrally controlled package collection. The tidyverse authors publicly appear to be interested in re-basing the tidyverse in terms of their new rlang/tidyeval package. So it is natural to … Continue reading What is magrittr’s future in the tidyverse?

Read more »

In praise of syntactic sugar

July 7, 2017
By

There has been some talk of adding native pipe notation to R (for example here, here, and here). And even a tidyeval/rlang pipe here. I think a critical aspect of such an extension would be to treat such a notation as syntactic sugar and not insist such a pipe match magrittr semantics, or worse yet … Continue reading In praise of syntactic sugar

Read more »

Working With R and Big Data: Use Replyr

July 6, 2017
By

In our latest R and Big Data article we discuss replyr. Why replyr replyr stands for REmote PLYing of big data for R. Why should R users try replyr? Because it lets you take a number of common working patterns and apply them to remote data (such as databases or Spark). replyr allows users to … Continue reading Working With R and Big Data: Use Replyr

Read more »

Join Dependency Sorting

July 1, 2017
By
Join Dependency Sorting

In our latest installment of “R and big data” let’s again discuss the task of left joining many tables from a data warehouse using R and a system called "a join controller" (last discussed here). One of the great advantages to specifying complicated sequences of operations in data (rather than in code) is: it is … Continue reading Join Dependency Sorting

Read more »

Using wrapr::let() with tidyeval

June 28, 2017
By

While going over some of the discussion related to my last post I came up with a really neat way to use wrapr::let() and rlang/tidyeval together. Please read on to see the situation and example.Suppose we want to parameterize over a couple of names, one denoting a variable coming from the current environment and one … Continue reading Using wrapr::let() with tidyeval

Read more »

Please Consider Using wrapr::let() for Replacement Tasks

June 26, 2017
By

From dplyr issue 2916. The following appears to work. suppressPackageStartupMessages(library("dplyr")) COL <- "homeworld" starwars %>% group_by(.data[[COL]]) %>% head(n=1) ## # A tibble: 1 x 14 ## # Groups: COL [1] ## name height mass hair_color skin_color eye_color birth_year ## <chr> <int> <dbl> <chr> <chr> <chr> <dbl> ## 1 Luke Skywalker 172 77 blond fair blue … Continue reading Please Consider Using wrapr::let() for Replacement Tasks

Read more »

wrapr Implementation Update

June 19, 2017
By
wrapr Implementation Update

Introduction The development version CRAN version of our R helper function wrapr::let() has switched from string-based substitution to abstract syntax tree based substitution (AST based substitution, or language based substitution). I am looking for some feedback from wrapr::let() users already doing substantial work with wrapr::let(). If you are already using wrapr::let() please test if the … Continue reading wrapr Implementation Update

Read more »


Subscribe

Email:

  Subscribe