找回密码
 注册
查看: 365|回复: 0

R语言 sna包 write.nos()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 11:04:30 | 显示全部楼层 |阅读模式
write.nos(sna)
write.nos()所属R语言包:sna

                                         Write Output Graphs in (N)eo-(O)rg(S)tat Format
                                         (N)EO-(O)RG(S)达格式写输出图

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Writes a graph stack to an output file in NOS format.
将图形堆栈中写入到输出文件中NOS格式。


用法----------Usage----------


write.nos(x, file, row.col = NULL, col.col = NULL)



参数----------Arguments----------

参数:x
a graph or graph stack (all graphs must be of common order).
图表或图形堆栈(所有图表必须是普遍的顺序)。


参数:file
string containing the output file name.
字符串,其中包含输出文件的名称。


参数:row.col
vector of row labels (or "row colors").
向量的行标签(或“行的颜色”)。


参数:col.col
vector of column labels ("column colors").
向量的列标签(“列颜色”)。


Details

详细信息----------Details----------

NOS format consists of three header lines, followed by a whitespace delimited stack of raw adjacency matrices; the format is not particularly elegant, but turns up in certain legacy applications (mostly at CMU).  write.nos provides a quick and dirty way of writing files NOS, which can later be retrieved using read.nos.
NOS格式由三个标题行,然后由一个空格分隔的原料邻接矩阵堆栈的格式是不是特别优雅,但在某些旧的应用程序(主要是在债务工具中央结算系统)。 write.nos提供了一个快速和肮脏的方式写入文件未另作规定的,可以在以后检索使用read.nos。

The content of the NOS format is as follows:
的NOS格式的内容如下:

<m>
<m>个

<n> <o>
<n>个<O>

<kr1> <kr2> ... <krn> <kc1> <kc2> ... <kcn>
<kr1> <kr2> ... <krn> <kc1> <kc2> ... <kcn>

<a111> <a112> ... <a11o>
<a111> <a112> ... <a11o>

<a121> <a122> ... <a12o>
<a121> <a122> ... <a12o>

...
...

<a1n1> <a1n2> ... <a1no>
<a1n1> <a1n2> ... <a1no>

<a211> <a212> ... <a21o>
<a211> <a212> ... <a21o>

...
...

<a2n1> <a2n2> ... <a2no>
<a2n1> <a2n2> ... <a2no>

...
...

<amn1> <amn2> ... <amno>
<amn1> <amn2> ... <amno>

where <abcd> is understood to be the value of the c->d edge in the bth graph of the file.  (As one might expect, m, n, and o are the numbers of graphs (matrices), rows, and columns for the data, respectively.)  The "k" line contains a list of row and column "colors", categorical variables associated with each row and column, respectively.  Although originally intended to communicate exchangability information, these can be used for other purposes (though there are easier ways to deal with attribute data these days).
其中<ABCD>被理解为是的值的C-> D的BTH的文件图边缘。 (正如人们所预料,M,N和O图(矩阵),行,列的数据,分别是数字的)的“K”线包含了一系列行和列的“颜色”,分类变量分别与每个行和列相关联。尽管最初是沟通可交换信息,这些都可以被用于其他目的(虽然有更简单的方式来处理与属性数据,这些天)。

Note that NOS format only supports graph stacks of common order; graphs of different sizes cannot be stored within the same file.
需要注意的是NOS格式只支持图形栈的常用命令,不能存放在同一个文件不同尺寸的图形。


值----------Value----------

None.
无。


(作者)----------Author(s)----------


Carter T. Butts <a href="mailto:buttsc@uci.edu">buttsc@uci.edu</a>



参见----------See Also----------

read.nos, write.dl, write.table
read.nos,write.dl,write.table


实例----------Examples----------


## Not run: [#不运行:]
#Generate a random graph stack[生成一个随机的图形堆栈]
g<-rgraph(5,10)

#This would save the graphs in NOS format[这将节省NOS中的图形格式]
write.nos(g,file="testfile.nos")

#We can also read them back, like so:[我们也可以读出他们回来了,像这样:]
g2<-read.nos("testfile.nos")

## End(Not run)[#(不执行)]

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-8 04:16 , Processed in 0.025022 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表