Home
last modified time | relevance | path

Searched +refs:frequency +refs:zooreg (Results 1 – 22 of 22) sorted by relevance

/dports/math/R-cran-zoo/zoo/man/
H A Dzooreg.Rd1 \name{zooreg}
3 \alias{frequency.zooreg}
4 \alias{frequency.zoo}
30 zooreg(data, start = 1, end = numeric(), frequency = 1,
60 underlying frequency associated with them.
69 must be expressible as multiples of 1/frequency. 3.
81 index specified complies with the frequency specified.
107 frequency of the \code{zooreg} object will not necessarily be the same
122 zooreg(1:10, frequency = 4, start = c(1959, 2))
123 as.zoo(ts(1:10, frequency = 4, start = c(1959, 2)))
[all …]
H A Dfrequency.Rd1 \name{frequency<-}
2 \alias{frequency<-}
3 \alias{frequency<-.zoo}
4 \alias{frequency<-.zooreg}
7 Generic function for replacing the frequency of an object.
10 frequency(x) <- value
14 \item{value}{a frequency.}
19 the frequency of an object. Currently, there is a \code{"zooreg"} and
25 \seealso{\code{\link{zooreg}}, \code{\link{index}}}
28 z <- zooreg(1:5)
[all …]
H A Dis.regular.Rd5 \alias{is.regular.zooreg}
32 always strictly regular), \code{"zooreg"} objects (which are at least regular),
42 \seealso{\code{\link{zooreg}}, \code{\link{zoo}}}
46 z <- zoo(1:10, seq(2000, 2002.25, by = 0.25), frequency = 4)
49 frequency(z) ## extraction of frequency attribute
56 ## checking of a plain zoo series without frequency attribute
61 frequency(z) ## data driven computation of frequency
75 frequency(z) ## attempt of data-driven frequency computation
H A Daggregate.zoo.Rd14 regular = NULL, frequency = NULL, coredata = TRUE)
29 \code{TRUE} for \code{"zooreg"} series.}
30 \item{frequency}{numeric indicating the frequency of the aggregated series
31 (if a \code{"zooreg"} series should be returned. The default is to
41 An object of class \code{"zoo"} or \code{"zooreg"}.
99 # was "zoo"). To create a regular series of class "zooreg",
100 # the frequency can be automatically chosen
103 zr.qtr2 <- aggregate(z.day, as.yearqtr, mean, frequency = 4)
137 # aggregate weekly series to a series with frequency of 52 per year
140 z <- zooreg(1:100 + rnorm(100), start = as.Date("2001-01-01"), deltat = 7)
[all …]
H A Dzoo.Rd54 zoo(x = NULL, order.by = index(x), frequency = NULL,
63 \item{frequency}{numeric indicating frequency of \code{order.by}.
64 If specified, it is checked whether \code{order.by} and \code{frequency}
66 an object of class \code{c("zooreg", "zoo")}. See below and
67 \code{\link{zooreg}} for more details.}
68 \item{calendar}{logical. If \code{frequency} is specified and is 4 or 12:
94 series with a certain \code{frequency}).
128 If a \code{frequency} is specified when creating a series via \code{zoo}, the
132 index of that series). Regular \code{"zooreg"} series can also be created by
133 \code{\link{zooreg}}, the \code{zoo} analogue of \code{\link{ts}}. See the
[all …]
H A Dyearmon.Rd58 \code{ts} class with \code{frequency = 12}. If \code{x} is not in this
98 \seealso{\code{\link{yearqtr}}, \code{\link{zoo}}, \code{\link{zooreg}}, \code{\link{ts}}}
132 z <- zoo(rnorm(24), x, frequency = 12)
151 ## 4. convert to "zooreg" and then to "ts"
152 frequency(z) <- 12
H A Dna.StructTS.Rd26 be a regular time series and have a frequency. It is assumed the cycle length is 1.}
32 z <- zooreg(rep(10 * seq(8), each = 4) + rep(c(3, 1, 2, 4), times = 8),
H A Dplot.zoo.Rd227 z1 <- zooreg(d1, start = as.POSIXct("2013-01-01 00:00:01"), frequency = 0.0000006)
228 z2 <- zooreg(d2, start = as.POSIXct("2013-01-01 00:00:20"), frequency = 0.0000006)
229 zt <- zooreg(rnorm(1050), start = as.POSIXct("2013-01-01 00:00:01"), frequency = 0.00007)
258 v <- zooreg(rnorm(50), start = as.yearmon(2004), freq = 12)
268 v <- zooreg(rnorm(50), start = as.yearmon(2004), freq = 12)
H A Dyearqtr.Rd72 \code{ts} class with \code{frequency = 4}. If \code{x} is not in this
109 \seealso{\code{\link{yearmon}}, \code{\link{zoo}}, \code{\link{zooreg}}, \code{\link{ts}},
133 zz <- zoo(rnorm(8), x, frequency = 4)
/dports/math/R-cran-zoo/zoo/
H A DNAMESPACE10 "zooreg",
13 "as.zooreg",
14 "as.zooreg.default",
46 "frequency<-",
183 S3method("frequency", "zoo")
184 S3method("frequency<-", "zoo")
243 ## methods for class zooreg
246 S3method("frequency", "zooreg")
247 S3method("frequency<-", "zooreg")
250 S3method("lag", "zooreg")
[all …]
H A DMD536 02cd2fc15375bc0a2049139cc2892729 *R/zooreg.R
70 a91c3b70c28fc5e49376918e6f963781 *man/frequency.Rd
93 58ee858545582658d9d7b4f7532b4e7e *man/zooreg.Rd
H A DNEWS170 index for regular zoo series with frequency 4 and 12, respectively. With
442 o rev() method for zooreg objects added.
446 o added "frequency" argument to as.zooreg() generic and associated methods.
666 specific frequency).
713 as well as data, index (and frequency).
718 and zooreg() that return ts(NA) zooreg(NA), respectively.
754 resolved: is.regular(), frequency(), frequency<-() etc. all behave
773 o bug in as.ts.zooreg fixed
834 o suppressWarnings() was added in is.regular() and frequency() functions
891 o fixed frequency.zoo() which returned NA instead of NULL
[all …]
/dports/math/R-cran-zoo/zoo/inst/doc/
H A Dzoo.R80 zr1 <- zooreg(sin(1:9), start = 2000, frequency = 4)
92 frequency(zr1)
98 zooreg(1:5, start = as.Date("2005-01-01"))
115 frequency(zr1)
368 zr3 <- zooreg(rnorm(9), start = as.yearmon(2000), frequency = 12)
H A Dzoo.Rnw141 in Section~\ref{sec:zooreg}, the subclass \code{"zooreg"} for
292 \subsection[Creation of "zooreg" objects]{Creation of \code{"zooreg"} objects}
293 \label{sec:zooreg}
317 zoo(x, order.by, frequency)
318 zooreg(data, start, end, frequency, deltat, ts.eps, order.by)
322 \code{frequency} argument, it is checked whether \code{frequency} complies
326 is specified in the \code{zooreg()} call, then \code{zoo(x, order.by, frequency)}
343 zr1 <- zooreg(sin(1:9), start = 2000, frequency = 4)
359 frequency(zr1)
388 frequency(zr1)
[all …]
/dports/math/R-cran-zoo/zoo/tests/
H A Dvignette-zoo.R77 zr1 <- zooreg(sin(1:9), start = 2000, frequency = 4)
89 frequency(zr1)
95 zooreg(1:5, start = as.Date("2005-01-01"))
112 frequency(zr1)
361 zr3 <- zooreg(rnorm(9), start = as.yearmon(2000), frequency = 12)
H A Dvignette-zoo.Rout.save139 R> zr1 <- zooreg(sin(1:9), start = 2000, frequency = 4)
161 [1] "zooreg" "zoo"
162 R> frequency(zr1)
169 R> zooreg(1:5, start = as.Date("2005-01-01"))
194 R> frequency(zr1)
618 R> zr3 <- zooreg(rnorm(9), start = as.yearmon(2000), frequency = 12)
/dports/math/R-cran-zoo/zoo/R/
H A Das.zoo.R62 as.zooreg(as.zoo(x, ...), frequency = frequency)
127 as.zooreg <- function(x, frequency = NULL, ...) argument
134 as.zooreg(as.zoo(x, ...), frequency = frequency)
140 if(is.null(frequency)) frequency <- xtsp[3]
141 zooreg(coredata(x), start = xtsp[1], end = xtsp[2], frequency = frequency, ...)
146 freq <- frequency(x)
163 attr(x, "frequency") <- frequency(x)
179 if(!is.null(frequency)) {
180 frequency(x) <- frequency
182 freq <- frequency(x)
[all …]
H A Das.zoo.tis.R12 as.zooreg.tis <- function(x, frequency = NULL, class = "ti", ...) { argument
13 if (class == "ti") zooreg(tis::stripTis(x), start = start(x), ...)
14 else as.zooreg(as.zoo(x, class = class, ...), frequency = frequency)
H A Dzooreg.R1 zooreg <- function(data, start = 1, end = numeric(), frequency = 1, function
6 if (missing(frequency)) frequency <- 1/deltat
7 else if(missing(deltat)) deltat <- 1/frequency
8 if (frequency > 1 && abs(frequency - round(frequency)) < ts.eps)
9 frequency <- round(frequency)
37 end <- start + (ndata - 1)/frequency
42 start <- end - (ndata - 1)/frequency
54 if(identical(all.equal(start*frequency, round(start*frequency)), TRUE)) {
55 order.by <- floor(frequency*order.by + .0001)/frequency
81 attr(data, "frequency") <- frequency
[all …]
/dports/math/R-cran-zoo/zoo/tests/Examples/
H A Dzoo-Ex.Rout.save447 > ### Aliases: frequency<- frequency<-.zoo frequency<-.zooreg
653 > frequency(z) ## extraction of frequency attribute
673 > frequency(z) ## data driven computation of frequency
1610 > z1 <- zooreg(d1, start = as.POSIXct("2013-01-01 00:00:01"), frequency = 0.0000006)
1611 > z2 <- zooreg(d2, start = as.POSIXct("2013-01-01 00:00:20"), frequency = 0.0000006)
1612 > zt <- zooreg(rnorm(1050), start = as.POSIXct("2013-01-01 00:00:01"), frequency = 0.00007)
3156 > ### Aliases: zooreg frequency.zooreg frequency.zoo deltat.zooreg deltat.zoo
3157 > ### cycle.zooreg cycle.zoo as.zooreg as.zooreg.default as.zooreg.ts
3158 > ### as.zooreg.its as.zooreg.xts as.ts.zooreg as.zoo.zooreg as.zooreg.zoo
3159 > ### index<-.zooreg time<-.zooreg lag.zooreg
[all …]
/dports/math/R-cran-zoo/zoo/vignettes/
H A Dzoo-refcard-raw.tex14 \code{zoo(x, order.by, freq)} & works as above but creates a \code{"zooreg"}
15 object which inherits from \code{"zoo"} if the frequency \code{freq} complies
18 \code{zooreg(x, start, end, freq)} & creates a \code{"zooreg"} series
82 \code{frequency}, \code{deltat} & extracts the frequency or its reciprocal value
84 the regularity and frequency in a data-driven way\\
H A Dzoo.Rnw141 in Section~\ref{sec:zooreg}, the subclass \code{"zooreg"} for
292 \subsection[Creation of "zooreg" objects]{Creation of \code{"zooreg"} objects}
293 \label{sec:zooreg}
317 zoo(x, order.by, frequency)
318 zooreg(data, start, end, frequency, deltat, ts.eps, order.by)
322 \code{frequency} argument, it is checked whether \code{frequency} complies
326 is specified in the \code{zooreg()} call, then \code{zoo(x, order.by, frequency)}
343 zr1 <- zooreg(sin(1:9), start = 2000, frequency = 4)
359 frequency(zr1)
388 frequency(zr1)
[all …]