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

R语言 graph包 nodeData-methods()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 21:11:10 | 显示全部楼层 |阅读模式
nodeData-methods(graph)
nodeData-methods()所属R语言包:graph

                                        Get and set attributes for the nodes of a graph object
                                         获取和设置一个图形对象的节点属性

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

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

Attributes of the nodes of a graph can be accessed using nodeData.  The attributes must be defined using nodeDataDefaults.  You can ommit the n argument to retrieve attributes for all nodes in the graph.  You can ommit the attr argument to retrieve all attributes.
图节点的属性可以访问使用nodeData。属性必须定义使用nodeDataDefaults。你,可以ommitn参数检索为图中的所有节点的属性。你,可以ommitattr参数检索所有属性。


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


nodeData(self, n, attr)
nodeData(self, n, attr) <- value



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

参数:self
A graph-class instance
一个graph-class实例


参数:n
A character vector of node names
一个character向量节点名称


参数:attr
A character vector of length one specifying the name of a node attribute
一个character长度为一向量指定节点属性的名称


参数:value
An R object to store as the attribute value
一个R对象来存储属性值

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-25 10:37 , Processed in 0.025372 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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