An R function return and assignment puzzle
Win-Vector Blog 2016-01-25
Summary:
Here is an R programming puzzle. What does the following code snippet actually do? And ever harder: what does it mean? (See here for some material on the difference between what code does and what code means.) f <- function() { x <- 5 } f() In R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree" the … Continue reading An R function return and assignment puzzle