start.uts_vector: First and Last Observation Times

Description Usage Arguments Value Examples

View source: R/start_end.R

Description

Get the first and last observation time, respectively, of each time series.

Usage

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

## S3 method for class 'uts_matrix'
start(x, ...)

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

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

Arguments

x

a "uts_vector" object.

...

further arguments passed to or from methods.

Value

start() returns the first observation time of each time series as a POSIXct object. The time zone is determined by the first time series.

end() returns the last observation time of each time series as a POSIXct object. The time zone is determined by the first time series.

Examples

1
2
3
4
5
start(ex_uts_vector())
end(ex_uts_vector2())

# Returns a vector, because POSIXct objects cannot be stored in a matrix
start(ex_uts_matrix())

andreas50/utsMultivariate documentation built on Sept. 27, 2021, 10:33 p.m.