textent-methods: Getter and constructor for a TemporalExtent

Description Usage Arguments Value Examples

Description

This constructor function creates a TemporalExtent object that defines an interval on the temporal dimension with a minimum and maximum POSIXt value. This method will return the stored temporal extent that contains the minimum and maximum date values in a list. The list will be empty if the array has no temporal dimension.

Usage

1
2
3
4
5
## S4 method for signature 'scidbst'
textent(x)

## S4 method for signature 'POSIXt'
textent(x, y)

Arguments

x

a scidbst object or a POSIXt derived object for the minimum inclusive boundary

y

A POSIXt derived object for the maximum inclusive boundary

Value

The temporal extent as a TemporalExtent object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# manually creating a TemporalExtent object
tmin = as.POSIXlt("2016-01-01")
tmax = strptime("01-02-2016",format="%d-%m-%Y")
ext = textent(tmin,tmax)

## Not run: 
# Get the temporal extent from a scidbst object
st.arr = scidbst("st_array")
ext = textent(st.arr)

## End(Not run)

flahn/scidbst documentation built on May 16, 2019, 1:15 p.m.