Created
May 27, 2019 18:35
-
-
Save pbaylis/4caa0b928a5c56ce6c8f56a4e58c08d1 to your computer and use it in GitHub Desktop.
Revisions
-
pbaylis created this gist
May 27, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ multipetal <- function(df, n) { varname <- paste("petal", n , sep=".") mutate(df, !!varname := Petal.Width * n) }