#' @method print lfactor
#' @export
print.lfactor <- function(x, ...) {
xi <- x
attr(xi,"llevels") <- NULL
print.factor(xi)
cat("Numeric levels:", llevels(x), "\n")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.