R/summary.block.R

Defines functions summary.block.R

summary.block.R <- function(object, ...){
#  if(length(object$blocks)==1){
#    cat("Number of Groups = 1\n")
#    cat("Number of Blocks =", nrow(x$blocks[[1]]), "\n")
#    cat("Mean distance per Block =", mean(x$blocks[[1]][,3]), "\n")
#  object$blocks <- c(1, nrow(object$blocks[[1]]), mean(object$blocks[[1]][,3]))
#  colnames(object$blocks) <- c("Estimate")
#  rownames(object$blocks) <- c("Number of Groups", "bl", "dis")  
  class(object) <- "summary.block"
  object
}


 #   for(i in 1:length(x$blocks))




  #object$short <- short
  #class(object) <- "eiMDsum"
  #object

Try the blockTools package in your browser

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

blockTools documentation built on Feb. 16, 2023, 7:14 p.m.