Generic function for replacing the frequency of an object.
更换一个对象的频率的通用函数。
用法----------Usage----------
frequency(x) <- value
参数----------Arguments----------
参数:x
an object.
一个对象。
参数:value
a frequency.
一个频率。
Details
详细信息----------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).
frequency<-更换的频率(或分配)的对象是一个通用的功能。目前,有一个"zooreg"和"zoo"方法。在这两种情况下,value被分配到"frequency"的对象,如果它符合index(x)。
参见----------See Also----------
zooreg, index
zooreg,index
实例----------Examples----------
z <- zooreg(1:5)
z
as.ts(z)
frequency(z) <- 3
z
as.ts(z)