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

R语言 Heatplus包 Setting defaults()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 21:33:07 | 显示全部楼层 |阅读模式
Setting defaults(Heatplus)
Setting defaults()所属R语言包:Heatplus

                                        Override existing list entries
                                         覆盖现有的列表条目

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

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

Override existing list entries and extract arguments that are specified as named lists
覆盖现有的列表项和提取被命名为列表指定的参数


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


modifyExistingList(x, val)

extractArg(arglist, deflist)



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

参数:x
a named list, the target for replacing with entries with the same name from val  
一个名为名单,取代具有相同名称的条目val的目标


参数:val
a named list that serves as template for filling in values in x  
一个名为列表为模板,填充值x


参数:arglist
a named list; these are the specified arguments that override the defaults.  
一个名为名单,这些都是指定的参数,覆盖默认。


参数:deflist
a named list whose entries are all possible slots (with default values) that can be filled.   
一个名为列表的条目是所有可能的插槽(默认值),可以填补。


Details

详情----------Details----------

modifyExistingList is a general function that recursively overwrites named items in x with the value of items of val with the same name. Items in val that have no name, or do not correspond to an item in x with the same name, are ignored.
modifyExistingList是一个通用函数,递归覆盖命名项目x的物品的价值val具有相同的名称。在项目val有没有名字,或不符合x具有相同的名称,被忽略的项目。

extractArg is a specific helper function for setting default values for the annHeatmap2-family of functions, where arguments are given as a list with two named items, Row and Col. Each of these items is again a named list of actual parameters. At the same time, all items with other names than Row and Col at the top level are assumed to be shared items with the same value for both sub-lists. extractArg uses modifyExistingList to overwrite the default values specified in deflist with the actual values specified in arglist, see Examples.
extractArg是为特定辅助功能设置annHeatmap2功能,其中的参数作为两个命名项目列表,Row和Col家庭的默认值。这些项目是重新命名的实际参数列表。在同一时间,比其他名称的所有项目Row和Col在顶层被假定为两个子列表的值相同的共享项目。 extractArg使用modifyExistingList覆盖deflist与arglist指定的实际值,请参阅示例中指定的默认值。


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

modifyExistingList returns x, with values replaced from val where names match. extractArg returns a list with items Row and Col fully specified according to both deflist and arglist.
modifyExistingList回报x,val名称匹配取代的价值。 extractArg返回项目列表Row和Col完全根据双方deflist和arglist指定。


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

annHeatmap2
annHeatmap2


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


    ## Replace items with matching names recursively[#替换与名称匹配的项目递归]
    x   = list(a=1, b=2, c=list(a=31, b=32), 135)
    val = list(a=2, c=list(b=1114), d=92)
    modifyExistingList(x, val)
   
    ## Same defaults for rows/columns, no arguments specified[#相同的默认设置行/列,指定任何参数]
    defs = list(a="A", b="B", c="C")
    extractArg(NULL, defs)

    ## Shared and non-shared defaults[#共享和非共享的默认]
    defs = list(common.1=134, common.2=72, Row=list(row.only=14), Col=list(col.only=134))
    args = list(common.1 = -1, Row=list(row.only=94, common.2=-15))
    extractArg(args, defs)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-6 06:58 , Processed in 0.019804 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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