3 ms·
One exception: "modern" tidyverse users. Astract example: a function that takes in a "bare" column name and later "embraces" it in a data frame context. Concr
by fn-mote 4y ago
One exception: "modern" tidyverse users.
Astract example: a function that takes in a "bare" column name and later "embraces" it in a data frame context.
Concrete example: this function filters for c being nonzero, and uses lazy evaluation:
function (df,c) { df |> filter({{c}} != 0) }
That's an acceptable level of complexity for "not really programmer" R users to get something done. Whether or not they actually understand what they are doing under the hood? That's a different issue.