tisFromCsv(tis)
tisFromCsv()所属R语言包:tis
Read time series from Comma Separated Values (.csv) file
从逗号分隔值(CSV)文件,阅读的时间序列
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Reads tis (Time Indexed Series) from a csv file,
读取tis(时间索引系列)从一个CSV文件,
用法----------Usage----------
tisFromCsv(csvFile, dateCol = "date", dateFormat = "%Y%m%d",
tif = NULL, defaultTif = "business",
save = F, envir = parent.frame(),
naNumber = NULL, tolerance = sqrt(.Machine$double.eps), ...)
参数----------Arguments----------
参数:csvFile
A file name, connection, or URL acceptable to read.csv. Also see the the rest of this help entry for required attributes of this file.
接受的read.csv的文件名,连接或URL。另请参阅此帮助条目必需的属性,这个文件的其余部分。
参数:dateCol
name of the column holding dates. This column must be present in the file.
名称列的举行日期。此列必须出现在文件中。
参数:dateFormat
format of the dates in dateCol. If the dateCol cells contain Excel dates, use dateFormat == "excel". If they are strings, see strptime for date formats.
格式的日期dateCol。如果dateCol单元中含有Excel日期,使用dateFormat == "excel"。如果是字符串,请参阅strptime的日期格式。
参数:tif
time index frequency of the data. If this is NULL (the default), the function tries to infer the frequency from the dates in the ymdCol column.
频率的数据的时间索引。如果这是NULL(默认值),该函数尝试推断的频率ymdCol列中的日期。
参数:defaultTif
If the frequency can't be inferred from the dates in the ymdCol column, this tif frequency will be used. This should be a rare occurrence.
如果频率不能ymdCol列中的日期推断,这tif频率将被使用。这应该是一个罕见的现象。
参数:save
If true, save the individual series in the enviroment given by the envir argument. Default is FALSE.
如果为true,除个别系列在envir参数的环境。默认是FALSE。
参数:envir
if save == TRUE, the individual series (one per column) are saved in this enviroment. Default is the frame of the caller.
如果save == TRUE,个别系列的每列都保存在这个环境。默认值是呼叫者的帧。
参数:naNumber
if non-NULL, numbers within tolerance of this number are considered to be NA values. NA strings can be specified by including an na.strings argument as one of the ... arguments that are passed along to read.csv.
如果非NULL,内数字tolerance这个数被认为是NA的值。 NA字符串可以被指定由包括na.strings参数为一体的...参数传递给read.csv。
参数:tolerance
Used to determine whether or not numbers in the file are close enough to naNumber to be regarded as equal to it. The default is about 1.48e-08.
用于确定是否在该文件中的数字是足够接近naNumber被视为等于它。默认值是1.48e-08。
参数:...
Additional arguments passed along to the underlying read.csv function.
额外的参数传递给底层的read.csv函数。
Details
详细信息----------Details----------
File Requirements: The csv file must have column names across the top, and everything but the first row should be numeric. There must be as many column names (enclosed in quotes) as there are columns, and the column named by dateCol must have dates in the format indicated by dateFormat. <STRONG>The dateCol column must be present.</STRONG>
文件要求:CSV文件必须有列名的顶部,一切,但第一行应该是数字。必须有尽可能多的列名(用引号括起来)有柱,和,列名为dateCol必须有日期的格式表示dateFormat。 <STRONG> dateCol列必须存在。</ STRONG>
Missing (NA) values: Missing and NA values are the same thing. The underlying read.csv has "," as its default separator and "NA" as its default na.string, so the rows
失踪(NA)值:失踪和NA值是相同的东西。的基本read.csv有“,”作为其默认的分隔符,“NA”作为其默认的na.string,这样的行
值----------Value----------
A list of tis time series, one per column of the csv file. The list is returned invisibly if save is TRUE.
tis时间序列,每一个csv文件中的列列表。这份名单是不可见的,如果save是TRUE返回。
参见----------See Also----------
ti, tis, read.csv,
ti,tis,read.csv,
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|