powered by
Differs from polynom::as.character.polynomial() in that trailing zeros are preserved.
polynom::as.character.polynomial()
poly2character( x, decreasing = getOption("ggpmisc.decreasing.poly.eq", FALSE), digits = 3, keep.zeros = TRUE )
A character string.
character
a polynomial object.
polynomial
logical It specifies the order of the terms; in increasing (default) or decreasing powers.
integer Giving the number of significant digits to use for printing.
logical It indicates if zeros are to be retained in the formatted coefficients.
poly2character(1:3) poly2character(1:3, decreasing = TRUE)
Run the code above in your browser using DataLab