frequency<-

0th

Percentile

Replacing the Index of Objects

Generic function for replacing the frequency of an object.

Keywords
ts
Usage
frequency(x) <- value
Arguments
x

an object.

value

a frequency.

Details

frequency<- is a generic function for replacing (or assigning) the frequency of an object. Currently, there is a "zooreg" and a "zoo" method. In both cases, the value is assigned to the "frequency" of the object if it complies with the index(x).

See Also

zooreg, index

Aliases
  • frequency<-
  • frequency<-.zoo
  • frequency<-.zooreg
Examples
# NOT RUN {
z <- zooreg(1:5)
z
as.ts(z)
frequency(z) <- 3
z
as.ts(z)
# }
Documentation reproduced from package zoo, version 1.8-1, License: GPL-2 | GPL-3

Community examples

Looks like there are no examples yet.