Skip to content

Commit a66c71e

Browse files
Don't overwrite model column in nest.Rmd (#1559)
how about keep both model and pred(icted) columns rather than overwriting model column with predicted values
1 parent dec68d1 commit a66c71e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vignettes/nest.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ And then you could even produce a list of predictions:
9494

9595
```{r}
9696
mtcars_nested <- mtcars_nested %>%
97-
mutate(model = map(model, predict))
97+
mutate(pred = map(model, predict))
9898
mtcars_nested
9999
```
100100

0 commit comments

Comments
 (0)