ImportSamples(TargetSearch)
ImportSamples()所属R语言包:TargetSearch
Sample definitions
样本的定义
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function imports a sample list that will be processed from a tab delimited file.
此功能导入一个范例列表,将制表符分隔的文件处理。
用法----------Usage----------
ImportSamples(sampfile, CDFpath = ".", RIpath = ".", ...)
ImportSamplesFromDir(CDFpath = ".", RIfiles = FALSE, ignore.case = TRUE)
参数----------Arguments----------
参数:sampfile
A character string naming a sample file. See details.
一个字符串,命名一个样本文件。查看详情。
参数:CDFpath
A character string naming a directory where the CDF files are located.
一个字符串,命名一个CDF文件所在的目录。
参数:RIpath
A character string naming a directory where the RI corrected text files are/will be located.
一个字符串,命名目录中的RI纠正文本文件/将设。
参数:RIfiles
Logical. If TRUE, the function will look for for RI files (RI_*) instead of CDF files (the default).
逻辑。如果TRUE,功能将寻找注册机文件(RI_ *)代替CDF文件(默认)。
参数:ignore.case
Logical. Should pattern-matching be case-insensitive?
逻辑。模式匹配是不区分大小写?
参数:...
Other options passed to read.delim function.
其他选项传递给read.delim功能。
Details
详情----------Details----------
The sample file is a tab-delimited text file with at least two columns:
示例文件是一个制表符分隔的文本文件,至少有两列:
CDF_FILE - The list of baseline corrected CDF files.
CDF_FILE - 基线名单纠正CDF文件。
MEASUREMENT_DAY - The day when the sample was measured.
MEASUREMENT_DAY - 测定样品时的一天。
The column names must be exactly those indicated, but the column order doesn't matter. Other columns could be included in that file. They won't be used by the script, but will be included in the sample R object.
列名必须是完全的指示,但列的顺序无关紧要。在该文件中,可以列入的其他列。他们不会被使用的脚本,但将包括在样品R对象。
值----------Value----------
A tsSample object.
一个tsSample对象。
作者(S)----------Author(s)----------
Alvaro Cuadros-Inostroza, Matthew Hannah, Henning Redestig
参见----------See Also----------
ImportLibrary, tsSample
ImportLibrary,tsSample
举例----------Examples----------
# get the sample definition definition file[得到的样本。定义文件]
cdfpath <- file.path(.find.package("TargetSearchData"), "gc-ms-data")
sample.file <- file.path(cdfpath, "samples.txt")
# set a path where the RI files will be created[设置将创建一个国际扶轮文件的路径]
RIpath <- "."
# import samples[进口样品]
sampleDescription <- ImportSamples(sample.file, CDFpath = cdfpath, RIpath = RIpath)
# change the sample names[改变样品名称]
sampleNames(sampleDescription) <- paste("Sample", 1:length(sampleDescription), sep = "_")
# change the file paths (relative to the working path)[改变文件路径(相对工作路径)]
CDFpath(sampleDescription) <- "my_cdfs/"
RIpath(sampleDescription) <- "my_RIs/"
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|