Remove extraneous cache = FALSE

This commit is contained in:
hadley 2016-10-04 11:20:28 -05:00
parent ed42869cb4
commit 2ae5eeb1b5
1 changed files with 1 additions and 1 deletions

View File

@ -555,7 +555,7 @@ model_matrix(df, y ~ poly(x, 2))
However there's one major problem with using `poly()`: outside the range of the data, polynomials rapidly shoot off to positive or negative infinity. One safer alternative is to use the natural spline, `splines::ns()`.
```{r, cache = FALSE}
```{r}
library(splines)
model_matrix(df, y ~ ns(x, 2))
```