Remove extraneous cache = FALSE
This commit is contained in:
parent
ed42869cb4
commit
2ae5eeb1b5
|
@ -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))
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue