diff --git a/docs/day-2c-fp.Rmd b/docs/day-2c-fp.Rmd index cbc4072..da78ed2 100644 --- a/docs/day-2c-fp.Rmd +++ b/docs/day-2c-fp.Rmd @@ -559,7 +559,7 @@ map(input, ~ sample(1:10, size = .x, replace = TRUE)) # traditional approach to apply anonymous function # TOO VERBOSE! #<< -map(input, function(x) sample(1:10, size = .x, replace = TRUE)) +map(input, function(x) sample(1:10, size = x, replace = TRUE)) ``` ]