R/print.comp_prop.R

Defines functions print.feR.comp_prop

#' @export
print.feR.comp_prop <- function(x){

  # print(class(x))


  passed.args.list <-  names(attributes(x))
  passed.args <- list()
  for (p in passed.args.list) {
    passed.args[[p]] <- attr(x,p)
  }
  args <- formals(compare)
  final.args <- as.list(modifyList(args, passed.args))
  final.args <- append(final.args,attributes(x)[!(passed.args.list %in% names(final.args))])



  if (final.args$SHOW.DESCRIPTIVES) {
    if("END.RECURSION" %in% names(attributes(x))) {
      #... x viene de al menos una llamada a FABLE
    }
    fd <- .fable(final.args$DESC, END.RECURSION = TRUE)
    print(fd)
    cat("\n \n \n \n ")

  }

  ft <- .fable(x, rownames = F, END.RECURSION = TRUE)

  print(ft)

}
feranpre/feR documentation built on Nov. 22, 2022, 2:29 a.m.