Learn R Programming

aoos (version 0.5.0)

Show-class: Show class

Description

This is a virtual class to be contained in other class definitions. It overrides the default show method and is intended to be used with the aoos class system (defineClass). The show method will simply look for a method show defined as member of a class definition.

Usage

# S4 method for Show
show(object)

Arguments

object
an object inheriting from Show

See Also

defineClass

Examples

Run this code
ClassWithShowMethod <- defineClass("ClassWithShowMethod", contains = "Show", {
  show <- function() print(summary(.self))
})

ClassWithShowMethod()

Run the code above in your browser using DataLab