https://github.com/cran/cutpointr
Tip revision: 94a7e298b1a50d93e8a9ccb813a070f7b30f3da1 authored by Christian Thiele on 21 March 2018, 08:27:24 UTC
version 0.7.2
version 0.7.2
Tip revision: 94a7e29
print.cutpointr.R
#' Print cutpointr objects
#'
#' Prints the \code{cutpointr} object with full width like a \code{tbl_df}.
#'
#' @source Kirill Müller and Hadley Wickham (2017). tibble: Simple Data Frames.
#' https://CRAN.R-project.org/package=tibble
#' @param x a cutpointr object.
#' @param width width of output.
#' @param n number of rows to print.
#' @param ... further arguments.
#' @export
print.cutpointr <- function(x, width = 1000, n = 50, ...) {
# print.tbl_df is not exported by tibble, avoid :::
class(x) <- c("tbl_df", "tbl", "data.frame")
print(x, width = width, n = n)
class(x) <- c("cutpointr", "tbl_df", "tbl", "data.frame")
invisible(x)
}