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)) ``` ] diff --git a/student-scripts/day-2c-fp.Rmd b/student-scripts/day-2c-fp.Rmd index e88aa95..859d1b4 100644 --- a/student-scripts/day-2c-fp.Rmd +++ b/student-scripts/day-2c-fp.Rmd @@ -57,7 +57,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)) ```