base-start: Terminal Times and Range

Description Usage Arguments Details Value Examples

Description

Extracts the time the first or last observation was taken, or computes the range.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## S3 method for class 'timeDate'
start(x, ...)

## S3 method for class 'timeDate'
end(x, ...)

## S3 method for class 'timeDate'
min(..., na.rm = FALSE)

## S3 method for class 'timeDate'
max(..., na.rm = FALSE)

## S3 method for class 'timeDate'
range(..., na.rm = FALSE)

Arguments

x

an object of class timeDate.

...

[start][end] -
not used,
[min][max] - 'timeDates' objects.

na.rm

not used.

Details

Note, the series will be time ordered before the start or end time stamps are extracted. Sorting is done in the way that the first observation appears in time before the last observation.

Value

returns an object of class timeDate.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
  
## timeCalendar - 
   # Random Calendar Dates:
   tR = sample(timeCalendar())
   sort(tR)
   tR
    
## start | end  -
   start(tR)
   end(tR)
   
## The First and Last Time Stamp:
   tR[1]
   tR[length(tR)]
   rev(tR)[1]
   
## The Range:
   c(start(tR), end(tR))
   range(tR)

timeDate documentation built on May 31, 2017, 2:12 a.m.

Search within the timeDate package
Search all R packages, documentation and source code