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

R语言 GeneticsPed包 sort.Pedigree()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 19:08:32 | 显示全部楼层 |阅读模式
sort.Pedigree(GeneticsPed)
sort.Pedigree()所属R语言包:GeneticsPed

                                        Sort pedigree
                                         排序系谱

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

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

Pedigree sort
家谱排序


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


## S3 method for class 'Pedigree'
sort(x, decreasing=FALSE, na.last=TRUE, ..., by="default")



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

参数:x
pedigree, object to be sorted
血统,要排序的对象


参数:decreasing
logical, sort order
逻辑,排序顺序


参数:na.last
logical, control treatment of NAs; check order
逻辑控制治疗NA的的检查order


参数:...
arguments passed to order, see details
参数传递order,查看详细信息


参数:by
character, sort by "default", "pedigree", "generation", or "dtBirth" information, see details
性格,“默认”,“开山鼻祖”,“一代”,或“dtBirth”信息排序,查看详细信息


Details

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

Sorting of the pedigree can be performed in different ways. Since pedigree can contain date of birth, sorting by this would be the most obvious way and it would be the most detailed sort. However, there might be the case that date of birth is not available for some or all individuals. Therefore, this function by default (when by="default") tries to figure out what would be the best way to perform the sort. If date of birth is available for all individuals then date of birth is used for sorting. If not, generation information is used, but only if it is known for all individuals (it should be more or less easy to figure out the generation for all individuals in the pedigree CHECK). Again if not, sorting is done via information in pedigree i.e. ascendants will precede descendants or vice versa. User can always define it's own preference by argument by. When by="dtBirth" or by="generation" sorting is performed via order and its arguments na.last and decreasing can be used. With by="pedigree" argument decreasing has an effect.
可以以不同的方式进行排序的系谱。由于血统可以包含出生日期,这个排序将是最明显的方式,这将是最详细的排序。然而,有可能的情况下,出生日期是不可部分或全部个人。因此,此功能默认情况下(当by="default")试图弄清楚什么是最好的方式进行排序。如果出生日期是适用于所有个人的出生日期是用于排序。如果没有,新一代信息,但只有当它是已知的所有个人(应该或多或少容易弄清楚代系谱检查所有个人)。再次,如果没有,排序是通过系谱即祖先的信息将前面的后裔,反之亦然。用户可以随时定义参数by它自己的偏好。当by="dtBirth"或通过by="generation"和它的参数order和na.last可以用来进行decreasing排序。 by="pedigree"说法decreasing有效果。

Generation values can have different meaning i.e. values might either increase or decrease from ascendants to descendant with the same meaning. This information is stored in attribute generationOrder (at the time of creating the pedigree object via Pedigree) and used for determining the order of sorting if sorting is by generation. The output of the result might therefore be opposite of what user might expect. If that is the case, use argument decreasing as defined in order. Look also into examples bellow.
代值可以有不同的含义,即值可能会增加或减少从祖先到后代具有相同的含义。此信息存储在属性generationOrder(的创建通过Pedigree的系谱对象时),用于确定的顺序排序,如果排序是一代。因此输出结果可能是相反的,用户可能会想到什么。如果是这样的话,使用参数decreasingorder定义。看起来还成的例子波纹管。


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

Sorted pedigree
排序系谱


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


Gregor Gorjanc



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

Pedigree and order
Pedigree和order


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


  ped <- generatePedigree(nId=5)
  ped <- ped[sample(1:nrow(ped)), ]
  sort(ped)
  ## sort(ped, by="dtBirth")       ## TODO[排序(PED,=“dtBirth”的)##的TODO]
  sort(ped, by="generation")
  ## try(sort(ped, by="pedigree")) ## TODO[#(排序(PED =“开山鼻祖”,))#的TODO]

  ## Sorting with decreasing generation values from ascendants to descendants[#减少值从祖先到子孙一代排序]
  ped1 <- generatePedigree(nId=5, generationOrder="decreasing")
  sort(ped1, by="generation")
  sort(ped1, decreasing=TRUE, by="generation")
  sort(ped1, decreasing=FALSE, by="generation")

  ## Sorting with unknown values[#未知值的排序]
  ped[1, "generation"] <- NA
  sort(ped, na.last=TRUE, by="generation")
  sort(ped, na.last=FALSE, by="generation")
  sort(ped, na.last=NA, by="generation")

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-7 19:05 , Processed in 0.029173 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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