R Tip: Use let() to Re-Map Names

Win-Vector Blog 2018-03-26

Summary:

Another R tip. Need to replace a name in some R code or make R code re-usable? Use wrapr::let(). Here is an example involving dplyr. Let’s look at some example data: library("dplyr") library("wrapr") starwars %>% select(., name, homeworld, species) %>% head(.) # # A tibble: 6 x 3 # name homeworld species # <chr> <chr> … Continue reading R Tip: Use let() to Re-Map Names

Link:

http://www.win-vector.com/blog/2018/03/r-tip-use-let-to-re-map-names/

From feeds:

Statistics and Visualization » Win-Vector Blog

Tags:

Authors:

John Mount

Date tagged:

03/26/2018, 22:11

Date published:

03/26/2018, 12:54