R/summary.PAFit_net.R

Defines functions summary.PAFit_net

Documented in summary.PAFit_net

summary.PAFit_net <- function(object,...){
  print(object)
  x <- object
  if (!is.null(x$PA)) {
    cat(paste0("\nThe PA function is: ",paste(head(x$PA), collapse = ", "),",..."))
  } else cat(paste0("\nThere is no PA function"))
  if (!is.null(x$fitness)) {
    cat(paste0("\nThe node fitnesses are: ",paste(head(x$fitness), collapse = ", "),",..."))
  } else cat(paste0("\nThere are no node fitnesses"))
  cat("\n")
}

Try the PAFit package in your browser

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

PAFit documentation built on Jan. 18, 2022, 1:10 a.m.