Sampling Frequency of a Time Series

DESCRIPTION:
Returns the frequency of sampling for time series or the time interval between observations.

USAGE:
frequency(x)
deltat(x)

REQUIRED ARGUMENTS:
x:
a univarite or multivariate regularly spaced time series (rts or cts).

VALUE:
deltat returns the time interval between observations, and frequency returns the number of observations in a sampling cycle.

DETAILS:
The values of deltat and frequency are reciprocals.

SEE ALSO:
cts , cycle , rts , time , tspar , units .

EXAMPLES:
freeny.rts<- as.rts(freeny.y)
freeny.rts

# produces the following output: 1 2 3 4 1962: 8.79236 8.79137 8.81486 1963: 8.81301 8.90751 8.93673 8.96161 1964: 8.96044 9.00868 9.03049 9.06906 1965: 9.05871 9.10698 9.12685 9.17096 1966: 9.18665 9.23823 9.26487 9.28436 1967: 9.31378 9.35025 9.35835 9.39767 1968: 9.42150 9.44223 9.48721 9.52374 1969: 9.53980 9.58123 9.60048 9.64496 1970: 9.64390 9.69405 9.69958 9.68683 1971: 9.71774 9.74924 9.77536 9.79424 start deltat frequency 1962.25 0.25 4

frequency(freeny.rts)

# produces the following output: frequency 4

deltat(freeny.rts)

# output: deltat 0.25