window.tis(tis)
window.tis()所属R语言包:tis
Time windows for Time Indexed Series
时间窗口时间索引系列
译者:生物统计家园网 机器人LoveR
描述----------Description----------
window.tis extracts the subset of the object x observed between the times start and end.
window.tis提取x倍start和end之间观察到的对象的子集。
用法----------Usage----------
## S3 method for class 'tis'
window(x, start = NULL, end = NULL, extend = FALSE, noWarn = FALSE, ...)
参数----------Arguments----------
参数:x
a tis object
tis对象
参数:start
the start time of the period of interest.
感兴趣的期间的开始时间。
参数:end
the end time of the period of interest.
感兴趣的期间的结束时间。
参数:extend
logical. If TRUE, the start and end values are allowed to extend the series. If FALSE, attempts to extend the series are ignored and a warning is issued unless noWarn is FALSE.
逻辑。如果TRUE,start和end值的允许延长系列。 FALSE如果,试图扩展该系列将被忽略,并发出警告,除非noWarn是FALSE。
参数:noWarn
logical. If FALSE (the default), warnings are generated if extend is FALSE and either (i) start is earlier than the start of the series or (ii) end is later than the end of the series.
逻辑。如果FALSE(默认值),警告如果extend是FALSE(我)start是早于该系列的开始,或(II)end是迟于该系列的结尾。
参数:...
other arguments to this function are ignored.
此功能的其他参数将被忽略。
Details
详细信息----------Details----------
The start and end times can be ti objects, or anything that ti(z, tif = tif, freq = frequency), can turn into a ti object.
开始和结束时间可以ti对象或什么ti(z, tif = tif, freq = frequency),可以变成一个ti对象的。
值----------Value----------
A tis object that starts and ends at the given times.
Atis对象,在给定的时间开始和结束。
注意----------Note----------
The replacement method window<-.tis has not been implemented. Use the subscript operator with a ti argument to replace values of a tis object.
更换方法window<-.tis没有得到执行。使用下标运算符与ti参数替换值的tis对象的。
实例----------Examples----------
z <- tis(1:24, start = c(2001,1), freq = 12)
z2 <- window(z, start = 19991231, extend = TRUE) ## z2 extends back with NA's[#Z2向后延伸与NA]
window(z, end = end(z) - 3)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|