as.tnet(tnet)
as.tnet()所属R语言包:tnet
Ensures that networks conform to the tnet stardards
确保网络符合TNET stardards
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Checks that a network conforms to the tnet stardards, and attaches a label. If the type parameter is not set, the network is assumed to be a binary two-mode network, a weighted one-mode network, or a longitudinal network if there are 2, 3, or 4 columns respectively. Moreover, if a matrix is entered (more than 4 columns and rows), it is assumed to be a weighted one-mode network if square or a two-mode network if non-square.
检查网络是否符合TNET stardards,并附加一个标签。如果参数没有被设置的类型,网络被假定为一个二进制双模式网络,加权1模式的网络,或一个纵向网络,如果有2个,3个或4列分别。此外,如果一个矩阵输入(超过4列和行),它被假定为是一个加权的单模式的网络,当正方形或如果非正方形的双模式网络。
用法----------Usage----------
as.tnet(net, type=NULL)
参数----------Arguments----------
参数:net
A network in an edgelist or matrix format. It can be a weighted one-mode network, a binary two-mode network, a weighted two-mode netork, or a longitudinal network. If the data-object has two-columns, it is assumed to be a binary two-mode network; three columns, weighted one-mode network; four columns, longitudinal; five or more and the same number of rows and columns, weighted one-mode network; five or more and –not– the same number of rows and columns, it is assumed to be a two-mode network.
EdgeList,在该列表或矩阵格式的网络。它可以是加权1模式网络,一个二进制的两个模式的网络,一个加权2模式netork的,或纵向网络。如果数据对象具有两个列,它被假定为是一个二进制双模式网络;三列,加权1模式的网络;四列,纵向,五个或更多的和相同数量的行和列,加权模式网络,五个或更多个不相同数量的行和列,它被假定为是一个双模式网络。
参数:type
If you would like to specify the type of network. This could be "weighted one-mode tnet", "binary two-mode tnet", "weighted two-mode tnet", or "longitudinal tnet".
如果你想指定的网络类型。这可能是“加权后一模式TNET”,“二进制模式TNET”,“加权后的两个模式TNET”,或“纵向TNET”的。
值----------Value----------
Returns the network with an attached lable.
返回网络连接的LABLE。
注意----------Note----------
version 1.0.0
版本1.0.0
(作者)----------Author(s)----------
Tore Opsahl; http://toreopsahl.com
实例----------Examples----------
## Load sample data[#加载样本数据。]
sample <- rbind(
c(1,2,4),
c(1,3,2),
c(2,1,4),
c(2,3,4),
c(2,4,1),
c(2,5,2),
c(3,1,2),
c(3,2,4),
c(4,2,1),
c(5,2,2),
c(5,6,1),
c(6,5,1))
## Run the programme[#执行程序]
as.tnet(sample)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|