From 48ba7c25efa0879fa43d5924c7b0034714a761f7 Mon Sep 17 00:00:00 2001 From: Darrell Jonathan Penta Date: Fri, 16 Sep 2016 13:16:07 -0400 Subject: [PATCH] Edited new vignette for possible function naming inconsistencies Line 497 of the .RMD file refers to the `transmogrifty()` function, but the illustration appears to refer to the function as `mogrify()`; line 533 references `add_new()`, but the function looks to be `add_variable()`. --- vignettes/lazyeval.Rmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vignettes/lazyeval.Rmd b/vignettes/lazyeval.Rmd index c672fe3..9a5698c 100644 --- a/vignettes/lazyeval.Rmd +++ b/vignettes/lazyeval.Rmd @@ -494,7 +494,7 @@ mogrify <- function(`_df`, ...) { (NB: the first argument is a non-syntactic name (i.e. it requires quoting with `` ` ``) so it doesn't accidentally match one of the names of the new variables.) -`transmogrifty()` makes it easy to add new variables to a data frame: +`mogrify()` makes it easy to add new variables to a data frame: ```{r} df <- data.frame(x = 1:5, y = sample(5)) @@ -530,7 +530,7 @@ mogrify <- function(`_df`, ...) { } ``` -`add_new()` becomes much simpler: +`add_variable()` becomes much simpler: ```{r} add_variable <- function(df, name, expr) {