Learn R Programming

timeDate (version 280.79)

subset: Subsetting a 'timeDate' Object

Description

Extracts or replaces subsets from 'timeDate' objects.

Usage

## S3 method for class 'timeDate':
[(x, \dots, drop = TRUE)

Arguments

x
an object of class timeDate.
...
arguments passed to other methods.
drop
a logical flag, by default TRUE.

Value

  • returns an object of class timeDate.

Examples

Run this code
## timeCalendar -
   tS = timeCalendar()
 
## [ - 
   # Subsetting Second Quarter:
   tS[4:6] 
   
## [<-
   # Replacing:

Run the code above in your browser using DataLab