Learn R Programming

CFtime (version 1.3.0)

==,CFtime,CFtime-method: Equivalence of CFtime objects

Description

This operator can be used to test if two CFtime objects represent the same CF-convention time coordinates. Two CFtime objects are considered equivalent if they have an equivalent datum and the same offsets.

Usage

# S4 method for CFtime,CFtime
==(e1, e2)

Value

TRUE if the CFtime objects are equivalent, FALSE otherwise.

Arguments

e1, e2

CFtime. Instances of the CFtime class.

Examples

Run this code
e1 <- CFtime("days since 1850-01-01", "gregorian", 0:364)
e2 <- CFtime("days since 1850-01-01 00:00:00", "standard", 0:364)
e1 == e2

Run the code above in your browser using DataLab