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

R语言 gaggle包 newTuple()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 18:26:00 | 显示全部楼层 |阅读模式
newTuple(gaggle)
newTuple()所属R语言包:gaggle

                                        Manipulate the Gaggle Tuple data type
                                         操纵鹅群的记录数据类型

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

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

Gaggle Tuples are lists of key/value pairs which can be nested. These functions support creation of tuple objects for broadcast to other Gaggle-connected software or conversion of tuples to R list objects.
鹅群元组键/值对列表可以嵌套。这些功能支持广播到其他的鹅群连接软件或R列表对象的元组转换为元组对象的创建。

The function getTupleAsList receives a Gaggle Tuple broadcast by converting the received value to a list. This is
的的功能getTupleAsList收到鹅群的Tuple转换接收到的值列表播放。这是


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


newTuple(name, list=NULL)
newSingle(name, value)
addSingle(tuple, name=NULL, value=NULL, single=NULL)
tupleToList(tuple)
getTupleAsList()



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

参数:name
name to be assigned to the tuple or individual value
命名被分配到元组或个人的价值


参数:list
a list of items to be converted to Singles and added to the tuple
要转换为单打和元组添加到一个项目列表


参数:value
the value of a key/value pair
一个键/值对的值


参数:tuple
a java tuple object
一个Java元组对象


参数:single
a java single object
一个java单个对象


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

getTuple. broadcast.
getTuple。 broadcast。


举例----------Examples----------


  t <- newTuple('sequence', list(name='chromosome', length=2014239))
  s <- newSingle('topology', 'circular')
  addSingle(t, single=s)
  addSingle(t, name='color', 'blue')
  tupleToList(t)
  # expected output:[预期产出:]
  #  $name[元名称]
  #    [1] "chromosome"[[1]“染色体”]
  #  $length[元长]
  #    [1] 2014239[[1] 2014239]
  #  $topology[$拓扑]
  #   [1] "circular"[[1]“圆”]
  #  $color[$色]
  #    [1] "blue"[[1]“蓝色”]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-8 12:15 , Processed in 0.032757 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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