irts-methods(tseries)
irts-methods()所属R语言包:tseries
Methods for Irregular Time-Series Objects
无规律的时间序列对象的方法。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Methods for irregular time-series objects.
不规则时间序列对象的方法。
用法----------Usage----------
## S3 method for class 'irts'
lines(x, type = "l", ...)
## S3 method for class 'irts'
plot(x, type = "l", plot.type = c("multiple", "single"),
xlab = "Time", ylab = NULL, main = NULL, ylim = NULL,
oma = c(6, 0, 5, 0), ...)
## S3 method for class 'irts'
points(x, type = "p", ...)
## S3 method for class 'irts'
print(x, format = "%Y-%m-%d %H:%M:%S", tz = "GMT",
usetz = TRUE, format.value = NULL, ...)
## S3 method for class 'irts'
time(x, ...)
## S3 method for class 'irts'
value(x, ...)
## S3 method for class 'irts'
x[i, j, ...]
参数----------Arguments----------
参数:x
an object of class "irts"; usually, a result of a call to irts.
类的一个对象"irts";通常情况下,调用irts的结果。
参数:type, plot.type, xlab, ylab, main, ylim, oma
graphical arguments, see plot, points, lines, par, and plot.ts.
图形参数,请参阅plot,points,lines,par和plot.ts。
参数:format, tz, usetz
formatting related arguments, see format.POSIXct.
格式化相关的参数,请参阅format.POSIXct。
参数:format.value
a string which specifies the formatting of the values when printing an irregular time-series object. format.value is passed unchanged as argument format to the function formatC.
一个字符串,该字符串指定的值的格式打印时,一个不规则的时间序列对象。 format.value通过不变参数format的功能formatC的。
参数:i, j
indices specifying the parts to extract from an irregular time-series object.
索引指定的部分,提取从一个不规则的时间序列对象。
参数:...
further arguments passed to or from other methods: for lines passed to lines; for plot passed to plot, plot.default, and mtext; for points passed to points; for print passed to formatC; for time, value, and [.irts unused.
进一步的参数传递给其他方法:lines传递给linesplot传递给plot,plot.default和mtext; points传递给pointsprint传递给formatC,time,value和[.irts无法使用。
Details
详细信息----------Details----------
plot is the method for plotting irregular time-series objects.
plot是绘制不规则时间序列对象的方法。
points and lines are the methods for drawing a sequence of points as given by an irregular time-series object and joining the corresponding points with line segments, respectively.
points和lines画一个序列由不规则的时间序列对象给出的点和连接的对应点,分别与线段的方法。
print is the method for printing irregular time-series objects.
print是印刷不规则的时间序列对象的方法。
time and value are the methods for extracting the sequence of times and the sequence of values of an irregular time-series object.
time和value是用于提取的时间和一个不规则的时间序列的对象的序列的值的序列的方法。
[.irts is the method for extracting parts of irregular time-series objects.
[.irts是提取部分的不规则时间序列对象的方法。
值----------Value----------
For time an object of class "POSIXct" representing the sequence of times. For value a vector or matrix representing the sequence of values.
对于time类的一个对象"POSIXct"代表的时间序列。对于value的向量或矩阵的值的序列。
For [.irts an object of class "irts" representing the extracted part.
对于[.irts的对象类"irts"提取的部分。
For plot, points, lines, and print the irregular time-series object.
对于plot,points,lines和print不规则时间序列的对象。
(作者)----------Author(s)----------
A. Trapletti
参见----------See Also----------
irts, irts-functions
irts,irts-functions
实例----------Examples----------
n <- 10
t <- cumsum(rexp(n, rate = 0.1))
v <- rnorm(n)
x <- irts(t, v)
x
time(x)
value(x)
plot(x)
points(x)
t <- cumsum(c(t[1], rexp(n-1, rate = 0.2)))
v <- rnorm(n, sd = 0.1)
x <- irts(t, v)
lines(x, col = "red")
points(x, col = "red")
# Multivariate[多变量]
t <- cumsum(rexp(n, rate = 0.1))
u <- rnorm(n)
v <- rnorm(n)
x <- irts(t, cbind(u, v))
x
x[,1]
x[1:3,]
x[1:3,1]
plot(x)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|