Fixed spelling of purrr on line 121 (#208)

This commit is contained in:
batpigandme 2016-07-29 14:07:49 -04:00 committed by Hadley Wickham
parent 8da00ed69e
commit 6351bf51de
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ measure_distance <- function(mod, data) {
measure_distance(c(7, 1.5), sim1)
```
Now we can use purrrr to compute the distance for all the models defined above. We need a helper function because our distance function expects the model as a numeric vector of length 2.
Now we can use purrr to compute the distance for all the models defined above. We need a helper function because our distance function expects the model as a numeric vector of length 2.
```{r}
sim1_dist <- function(a1, a2) {