From 2ae5eeb1b59d6f586d9c56220d2833bf5704e87d Mon Sep 17 00:00:00 2001 From: hadley Date: Tue, 4 Oct 2016 11:20:28 -0500 Subject: [PATCH] Remove extraneous cache = FALSE --- model-basics.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model-basics.Rmd b/model-basics.Rmd index f77d687..a6b6c93 100644 --- a/model-basics.Rmd +++ b/model-basics.Rmd @@ -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)) ```