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

Link:

http://www.win-vector.com/blog/2015/12/an-r-function-return-and-assignment-puzzle/

From feeds:

Statistics and Visualization » Win-Vector Blog

Tags:

assignment

Authors:

John Mount

Date tagged:

01/25/2016, 10:37

Date published:

12/29/2015, 13:54