mvpEqual <- function(pol1, pol2){
identical(pol1[["names"]], pol2[["names"]]) &&
identical(pol1[["power"]], pol2[["power"]]) &&
isTRUE(all.equal(pol1[["coeffs"]], pol2[["coeffs"]]))
}
Print <- function(x) {
capture.output(x)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.