View source: R/formulas_splines.R
| spline_basis | R Documentation |
Compute tidy B-spline basis functions
spline_basis(knots = c(0.25, 0.5, 0.75), degree = 3L, n = 1000L)
knots |
Interior knots between zero and one. |
degree |
Polynomial degree. |
n |
Number of evaluation points. |
A base data.frame with one row per x/basis combination and columns
x, basis, and value.
head(spline_basis(knots = c(0.25, 0.5, 0.75), degree = 3, n = 20))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.