importToExpData(Genominator)
importToExpData()所属R语言包:Genominator
Import data to database
导入数据到数据库
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function imports data from a data frame to a table in a database.
此功能的进口数据从一个数据框到一个数据库表中。
用法----------Usage----------
importToExpData(df, dbFilename, tablename, overwrite = FALSE,
verbose = getOption("verbose"), columns = NULL)
参数----------Arguments----------
参数:df
A data frame containing data to be imported. Must have columns chr, location and strand.
要导入一个包含数据的数据框。必须有列chr,location和strand。
参数:dbFilename
The filename of the database to which the data will be imported.
其中的数据将被导入到数据库的文件名。
参数:tablename
Name of database table to write output data to.
输出数据写入数据库表名。
参数:overwrite
Logical indicating whether database table referred to in tablename argument should be overwritten.
逻辑说明中提到tablename参数应该是覆盖到数据库中的表是否。
参数:verbose
Logical indicating whether details should be printed.
逻辑说明是否应印有细节。
参数:columns
Vector of column names of columns to be imported.
矢量列的列名进口。
值----------Value----------
Returns an object of class ExpData.
类ExpData返回一个对象。
作者(S)----------Author(s)----------
James Bullard <a href="mailto:bullard@berkeley.edu">bullard@berkeley.edu</a>, Kasper Daniel
Hansen <a href="mailto:khansen@jhsph.edu">khansen@jhsph.edu</a>
参见----------See Also----------
See Genominator vignette for more information. See also ExpData-class.
看到Genominator更多信息插曲。还可以看ExpData-class。
举例----------Examples----------
N <- 10000 # the number of observations. [的若干意见。]
df <- data.frame(chr = sample(1:16, size = N, replace = TRUE),
location = sample(1:1000, size = N, replace = TRUE),
strand = sample(c(1L,-1L), size = N, replace = TRUE))
eDataRaw <- importToExpData(df, dbFilename = tempfile(),
tablename = "ex_tbl", overwrite = TRUE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|