From 44ad7547cfeb66f6e308ab53fa0143117a23235f Mon Sep 17 00:00:00 2001 From: hadley Date: Wed, 3 May 2017 08:23:06 -0500 Subject: [PATCH] Fix typo. Fixes #567 --- iteration.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iteration.Rmd b/iteration.Rmd index 034b69e..4c25b00 100644 --- a/iteration.Rmd +++ b/iteration.Rmd @@ -610,7 +610,7 @@ If you're familiar with the apply family of functions in base R, you might have additional argument that defines the type. The only problem with `vapply()` is that it's a lot of typing: `vapply(df, is.numeric, logical(1))` is equivalent to - `map_lgl(df, is.numeric)`. One of advantage of `vapply()` over purrr's map + `map_lgl(df, is.numeric)`. One advantage of `vapply()` over purrr's map functions is that it can also produce matrices --- the map functions only ever produce vectors.