Summary.Date
Summary Group Method for Date/Time Objects

Description

A group method for calculating mathematical summaries for Date/Time objects.

Usage

## min, max, range
## S3 method for class 'Date':
Summary(..., na.rm)
## S3 method for class 'POSIXct':
Summary(..., na.rm)
## S3 method for class 'POSIXlt':
Summary(..., na.rm)

## min, max, range, sum ## S3 method for class 'difftime': Summary(..., na.rm)

Arguments

na.rm a logical flag. If TRUE, removes missing values before computation. The default is FALSE.
... additional arguments.
Value
returns the results of the generic functions.
See Also
Summary, Date, POSIXt, difftime
Examples
## Date
(d <- Sys.Date() + 1:10)
range(d)

## POSIXct (ct <- Sys.time() + 1:10) range(ct)

## POSIXlt (lt <- as.POSIXlt(Sys.time() + 1:10)) range(lt)

## difftime (dt <- Sys.time() - as.POSIXct(Sys.Date()) + 1:10) sum(dt)

Package base version 6.1.4-13
Package Index