The rquery R package has several places where the user can ask for what they have typed in to be substituted for a name or value stored in a variable. This becomes important as many of the rquery commands capture column names from un-executed code. So knowing if something is […]
Estimated reading time: 13 minutes
Recently ran into something interesting in the R macros/quasi-quotation/substitution/syntax front: Romain François: “.@_lionelhenry reveals planned double curly syntax At #satRdayParis as a possible replacement, addition to !! and enquo()” It appears !! is no longer the last word in substitution (it certainly wasn’t the first).
Estimated reading time: 2 minutes
One thing that is sure to get lost in my long note on macros in R is just how concise and powerful macros are. The problem is macros are concise, but they do a lot for you. So you get bogged down when you explain the joke. Let’s try to […]
Estimated reading time: 3 minutes
R tip : how to pass a formula to lm(). Often when modeling in R one wants to build up a formula outside of the modeling call. This allows the set of columns being used to be passed around as a vector of strings, and treated as data. Being able […]
Estimated reading time: 5 minutes