tt2matrix(coRNAi)
tt2matrix()所属R语言包:coRNAi
Extracting data from a toptable and format it to matrix
提取数据从toptable,并格式化它矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Given an dataframe with data, typically from the interactiontable, the gene pair data is converted to a symmetric matrix.
鉴于数据,通常是从interactiontabledataframe,基因对数据转换为一个对称矩阵。
用法----------Usage----------
tt2matrix(toptable, what)
参数----------Arguments----------
参数:toptable
a dataframe with data for the pairwise interactions. Typically from the interactiontable function.
dataframe与成对的相互作用的数据。通常从interactiontable功能。
参数:what
character indicating which of the columns in the dataframe should be used in the matrix.
字符表示应在dataframe列矩阵。
值----------Value----------
a symmetric matrix with the selected data for gene pair i,j in matrix[i,j] and matrix[j,i]
与基因对选定的数据对称矩阵,在矩阵J [我],矩阵[J,I]
作者(S)----------Author(s)----------
Elin Axelsson
举例----------Examples----------
## simulated data[#模拟数据]
mytoptable = data.frame("ID" = c("A B", "A C", "B C"),"size"=c(1:3),stringsAsFactors=FALSE)
mat = tt2matrix(mytoptable,what="size")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|