rmini (version 0.0.4)

hello: An S3 generic function example

Description

Say hello on difference classes.

Usage

hello(x)
"hello"(x)
"hello"(x)

Arguments

x
an arbitrary R object

Value

The class of x is printed as a side-effect.

Examples

Run this code
hello(1)
hello("a")
hello(structure(1, class = "world"))

Run the code above in your browser using DataCamp Workspace