R/print.npc.R

Defines functions print.npc

Documented in print.npc

#' Print the npc object.
#' @export
#' @method print npc
#' @param x fitted npc object using \code{npc}.
#' @param ... additional arguments.
#' @seealso \code{\link{npc}}, \code{\link{nproc}}
#' @examples
#' n = 1000
#' x = matrix(rnorm(n*2),n,2)
#' c = 1+3*x[,1]
#' y = rbinom(n,1,1/(1+exp(-c)))
#' fit = npc(x, y, method = 'lda')
#' print(fit)

print.npc <- function(x, ...) {
  x$fits = NULL
  attr(x, "class") = NULL
  print(x)
}

Try the nproc package in your browser

Any scripts or data that you put into this service are public.

nproc documentation built on March 26, 2020, 7:30 p.m.