Learn R Programming

Claddis (version 0.7.0)

check_timeBins: Check timeBins object for errors

Description

Internal function to check timeBins object for errors.

Usage

check_timeBins(time_bins)

Value

An error message or empty vector if no errors found.

Arguments

time_bins

A timeBins object.

Author

Graeme T. Lloyd graemetlloyd@gmail.com

Details

Internal Claddis function. Nothing to see here. Carry on.

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")
  )
)

# Check that this is a valid timeBins object (will return error message as class
# is not set):
check_timeBins(time_bins = time_bins)

Run the code above in your browser using DataLab