hadley/adv-r

Functionals.Rmd Exercise 9.4.6#3 vars should be nm

yogat3ch opened this issue · 0 comments

mtcars[vars] <- map(vars, ~ trans[[.x]](mtcars[[.x]]))

nm was the variable defined with the column names so it should read:
mtcars[nm] <- map(nm, ~ trans[[.x]](mtcars[[.x]]))