Differs from polynom::as.character.polynomial()
in that trailing zeros
are preserved.
Usage
poly2character(
x,
decreasing = getOption("ggpmisc.decreasing.poly.eq", FALSE),
digits = 3,
keep.zeros = TRUE
)
Arguments
- x
a
polynomial
object.- decreasing
logical It specifies the order of the terms; in increasing (default) or decreasing powers.
- digits
integer Giving the number of significant digits to use for printing.
- keep.zeros
logical It indicates if zeros are to be retained in the formatted coefficients.