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:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|