R/summary.Game.R

Defines functions summary.Game

Documented in summary.Game

summary.Game <-
function(object, ...) {
	#assignInNamespace("summary.Game", summary.Game, ns = asNamespace("base"))
   x<-object
   cat("\n")
   cat("Characteristic form of the game","\n")
   cat("\n")
   cat("Number of agents:",x$Ag,"\n")
   cat("\n")
   cat("Coaliton Value(s)","\n")
   cat("\n")
   L<-as.matrix(x$Lex)
   rownames(L)<-rownames(x$Lmat);
   colnames(L)<-"Value"
   print(L)
   cat("\n")
   }

Try the GameTheory package in your browser

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

GameTheory documentation built on Sept. 25, 2023, 5:07 p.m.