tfstart {tframe} | R Documentation

## Extract Time Frame Information

### Description

Functions for extracting time frame information.

### Usage

        ## S3 method for class 'tframed':
        start(x, ...)
        ## S3 method for class 'tframe':
        start(x, ...)
        tfstart(x)
        ## Default S3 method:
        tfstart(x)
        ## S3 method for class 'tstframe':
        tfstart(x)

        ## S3 method for class 'tframed':
        end(x, ...)
        ## S3 method for class 'tframe':
        end(x, ...)
        tfend(x)
        ## Default S3 method:
        tfend(x)
        ## S3 method for class 'tstframe':
        tfend(x)

        ## S3 method for class 'tframed':
        frequency(x, ...)
        ## S3 method for class 'tframe':
        frequency(x, ...)
        tffrequency(x)
        ## Default S3 method:
        tffrequency(x)

        periods(x)
        ## Default S3 method:
        periods(x)
        ## S3 method for class 'tframed':
        periods(x)
        ## S3 method for class 'tframe':
        periods(x)
        tfperiods(x)
        ## Default S3 method:
        tfperiods(x)
        ## S3 method for class 'stamped':
        tfperiods(x)

        ## S3 method for class 'tframed':
        time(x, ...)
        ## S3 method for class 'tframe':
        time(x, ...)
        tftime(x)
        ## Default S3 method:
        tftime(x)
        ## S3 method for class 'tframed':
        time(x, ...)

### Arguments

`x` | a tframe or a tframed object.
`...` | arguments to be passed to other methods.

### Details

The methods start and end return the start or end date of a tframe or tframed object. Periods return the number of observations (time points). frequency returns the frequency of observation, typically the number of observations in a year for economic data, but possibly something else in other contexts. The concept of frequency is not very consistently defined for time series data, and the use of the frequency method should probably be avoided where possible. In practice it seems rarely necessary, but the method makes porting of older code much easier.

### Value

Depends

### See Also

`tframe`, `tframed` `start` `end` `frequency` `periods` `time` `lag` `diff`

### Examples

        z <- ts(rnorm(100), start=c(1982,1), frequency=12)
        tfstart(z)
        z <- tframed(matrix(rnorm(200), 100,2),
                tf=list(start=c(1982,1), frequency=12))
        tfend(z)
        periods(z)
        time(z)

[Package Contents]