irts-functions(tseries)
irts-functions()所属R语言包:tseries
Basic Functions for Irregular Time-Series Objects
不规则时间序列对象的基本功能
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Basic functions related to irregular time-series objects.
相关的不规则时间序列对象的基本功能。
用法----------Usage----------
daysecond(object, tz = "GMT")
approx.irts(object, time, ...)
is.businessday(object, tz = "GMT")
is.weekend(object, tz = "GMT")
read.irts(file, format = "%Y-%m-%d %H:%M:%S", tz = "GMT", ...)
weekday(object, tz = "GMT")
write.irts(object, file = "", append = FALSE, quote = FALSE,
sep = " ", eol = "\n", na = "NA", dec = ".",
row.names = FALSE, col.names = FALSE, qmethod = "escape",
format = "%Y-%m-%d %H:%M:%S", tz = "GMT", usetz = FALSE,
format.value = NULL, ...)
参数----------Arguments----------
参数:object
an object of class "irts"; usually, a result of a call to irts.
类的一个对象"irts";通常情况下,调用irts的结果。
参数:format, tz, usetz
formatting related arguments, see format.POSIXct.
格式化相关的参数,请参阅format.POSIXct。
参数:time
an object of class "POSIXct" specifying the times at which to interpolate the irregularly spaced time-series.
类的一个对象"POSIXct"指定的时间,来内插的不规则间隔的时间系列。
reading and writing related arguments, see read.table and write.table.
阅读和写作相关的参数,请参阅read.table和write.table。
参数:format.value
a string which specifies the formatting of the values when writing an irregular time-series object to a file. format.value is passed unchanged as argument format to the function formatC.
一个字符串,它的值指定的格式写一个不规则的时间序列对象到一个文件时,。 format.value通过不变参数format的功能formatC的。
参数:...
further arguments passed to or from other methods: for approx.irts passed to approx; for read.irts passed to read.table; for write.irts passed to data.frame.
通过进一步的论据或其他方法:approx.irts传递给approxread.irts传递给read.tablewrite.irts传递data.frame的。
Details
详细信息----------Details----------
daysecond and weekday return the number of seconds since midnight (the same day) and the weekday as a decimal number (0-6, Sunday is 0), respectively.
daysecond和weekday返回午夜以来的秒数(同一天)和(周一至周五),分别为十进制数(0-6,星期日为0)。
is.businessday and is.weekend test which entries of an irregular time-series object are recorded on business days and weekends, respectively.
is.businessday和is.weekend测试一个不规则的时间序列对象的条目记录,分别在工作日和周末。
approx.irts interpolates an irregularly spaced time-series at prespecified times.
approx.irts插值不规则的间隔时间在预先设定的时间。
read.irts is the function to read irregular time-series objects from a file.
read.irts的功能从文件中读出不规则的时间序列对象。
write.irts is the function to write irregular time-series objects to a file.
write.irts的功能是写不规则时间序列对象到一个文件中。
值----------Value----------
For daysecond and weekday a vector of decimal numbers representing the number of seconds and the weekday, respectively.
对于daysecond和weekday一个向量的十进制数表示的秒数和平日,分别。
For is.businessday and is.weekend a vector of "logical" representing the test results for each time.
对于is.businessday和is.weekend的向量"logical"代表每次的测试结果。
For approx.irts, read.irts and write.irts an object of class "irts".
approx.irts,read.irts和write.irts类"irts"对象。
(作者)----------Author(s)----------
A. Trapletti
参见----------See Also----------
irts, irts-methods
irts,irts-methods
实例----------Examples----------
n <- 10
t <- cumsum(rexp(n, rate = 0.1))
v <- rnorm(n)
x <- irts(t, v)
daysecond(x)
weekday(x)
is.businessday(x)
is.weekend(x)
x
approx.irts(x, seq(ISOdatetime(1970, 1, 1, 0, 0, 0, tz = "GMT"),
by = "10 secs", length = 7), rule = 2)
## Not run: [#不运行:]
file <- tempfile()
# To write an irregular time-series object to a file one might use[要写入到一个文件中可能会使用的不规则时间序列对象]
write.irts(x, file = file)
# To read an irregular time-series object from a file one might use[要阅读从文件可能会使用一个不规则的时间序列对象]
read.irts(file = file)
unlink(file)
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|