Learn R Programming

CFtime (version 1.6.1)

==.CFTime: 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 calendar and the same offsets.

Usage

# S3 method for CFTime
==(e1, e2)

Value

TRUE if the CFTime objects are equivalent, FALSE otherwise.

Arguments

e1, e2

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