Learn R Programming

CFtime (version 1.3.0)

CFdefinition: Properties of a CFtime object

Description

These functions return the properties of an instance of the CFtime class. The properties are all read-only, but offsets can be added using the + operator.

Usage

CFdefinition(cf)

CFcalendar(cf)

CFunit(cf)

CForigin(cf)

CFtimezone(cf)

CFoffsets(cf)

CFresolution(cf)

Value

CFcalendar() and CFunit() return an atomic character string. CForigin() returns a data frame of timestamp elements with a single row of data. CFtimezone() returns the datum time zone as an atomic character string. CFoffsets() returns a vector of offsets or NULL if no offsets have been set.

Arguments

cf

CFtime. An instance of CFtime.

Functions

  • CFdefinition(): The definition string of the CFtime instance

  • CFcalendar(): The calendar of the CFtime instance

  • CFunit(): The unit of the CFtime instance

  • CForigin(): The origin of the CFtime instance in timestamp elements

  • CFtimezone(): The time zone of the datum of the CFtime instance as a character string

  • CFoffsets(): The offsets of the CFtime instance as a vector

  • CFresolution(): The average separation between the offsets in the CFtime instance

Examples

Run this code
cf <- CFtime("days since 1850-01-01", "julian", 0:364)
CFdefinition(cf)
CFcalendar(cf)
CFunit(cf)
CFtimezone(cf)
CForigin(cf)
CFoffsets(cf)
CFresolution(cf)

Run the code above in your browser using DataLab