Learn R Programming

Claddis (version 0.7.0)

print.timeBins: Compact display of time bins

Description

Displays a compact summary of a timeBins object.

Usage

# S3 method for timeBins
print(x, ...)

Value

Nothing is directly returned, instead a text summary describing a "timeBins" object is printed to the console.

Arguments

x

An object of class "timeBins".

...

Further arguments passed to or from other methods.

Author

Graeme T. Lloyd graemetlloyd@gmail.com

Details

Displays some basic summary information on a time bins object, including number of bins and their names and timespans.

Examples

Run this code

# Create a time bins object:
time_bins <- matrix(
  data = c(99.6, 93.5, 93.5, 89.3, 89.3, 85.8, 85.8, 83.5, 83.5, 70.6, 70.6, 65.5),
  ncol = 2,
  byrow = TRUE,
  dimnames = list(
    c("Cenomanian", "Turonian", "Coniacian", "Santonian", "Campanian", "Maastrichtian"),
    c("fad", "lad")
  )
)

# Set class as timeBins:
class(time_bins) <- "timeBins"

# Show print.timeBins version of each included data sets:
print.timeBins(x = time_bins)

Run the code above in your browser using DataLab