View source: R/polypoly-package.R
| poly_melt | R Documentation |
Melt a polynomial matrix
poly_melt(x)
x |
a matrix created by |
The degree values are returned as a character vector because they
should be treated categorically (as when plotting). Moreover, matrices
made with multiple vectors (e.g., poly(rnorm(10), rnorm(10), degree = 2))
have names that are not numerically meaningful (e.g., 1.0, 2.0, 0.1,
1.1, 0.2),
a tibble::tibble() with three columns: observation (row number of
the matrix), polynomial degree, and value.
m <- poly(rnorm(10), degree = 3) poly_melt(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.