Re: [R] method show

2012-11-19 Thread Martin Morgan
On 11/19/2012 04:21 PM, Andrea Spano wrote: Hello the list, As a simple example: rm(list = ls())> setClass("tre", representation(x="numeric"))> setMethod("show", "tre", def = function(object) cat(object@x))[1] "show"> setMethod("summary", "tre", def = function(object) cat("This is a tre of v

[R] method show

2012-11-19 Thread Andrea Spano
Hello the list, As a simple example: > rm(list = ls())> setClass("tre", representation(x="numeric"))> > setMethod("show", "tre", def = function(object) cat(object@x))[1] "show"> > setMethod("summary", "tre", def = function(object) cat("This is a tre of > value ", object@x, "\n"))Creating a ge