Mailund on the Internet

On Writing, Science, Programming and more

Errata: Functional Programming in R

Chapter 2

The Structure of a Recursive Function, page 32:

“Here I am assuming that is an integer…” should be “Here I am assuming that n is an integer…”

Figures 2-1 and 2-2 in second edition (Functional programming in R4)

The 2-2 figure is a copy of the 2-1 figure. The correct figure is this.

Chapter 3

Nested Functions and Scopes, page 53ff.

The code defines function g as g <- function(y) x + y but in the environment chains g is defined as g <- function(y) x + 1; that should also be g <- function(y) x + y.


comments powered by Disqus