Learn R Programming

CFtime (version 1.6.1)

range.CFTime: Extreme time series values

Description

Character representation of the extreme values in the time series.

Usage

# S3 method for CFTime
range(x, format = "", bounds = FALSE, ..., na.rm = FALSE)

Value

Vector of two character representations of the extremes of the time series.

Arguments

x

An instance of the CFTime class.

format

A character string with format specifiers, optional. If it is missing or an empty string, the most economical ISO8601 format is chosen: "date" when no time information is present in x, "timestamp" otherwise. Otherwise a suitable format specifier can be provided.

bounds

Logical to indicate if the extremes from the bounds should be used, if set. Defaults to FALSE.

...

Ignored.

na.rm

Ignored.

Examples

Run this code
cf <- CFtime("days since 1850-01-01", "julian", 0:364)
range(cf)
range(cf, "%Y-%b-%e")

Run the code above in your browser using DataLab