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

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

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

                                        Number of individuals in a pedigree
                                         个体数量在系谱

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

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

nIndividual returns number of individuals (individuals and/or ascendants) in a pedigree object.
nIndividual返回在系谱对象个体(个人和/或长辈)的数量。


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


nIndividual(x, col=NULL, extend=TRUE, drop=TRUE)



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

参数:x
pedigree
系谱


参数:col
character, which id column should be the source: "id" (default) or particular ascendant i.e. "father" and "mother"
字符,其中ID列应该是源:“身份证”(默认)或特别方兴未艾,即“父亲”和“母亲”


参数:extend
logical, extend pedigree
逻辑,扩展系谱


参数:drop
logical, drop unused levels in case factors are used
逻辑,水平下降的情况下未使用的因素是使用


Details

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

FIXME - this will change a lot!!!! There is always one additional level in levels in case factors are used to represent individuals in a pedigree as described in Pedigree. However, nlevels.Pedigree prints out the number of levels actually used to represent individuals i.e. level unknown is not included into the result.
修正 - 这将发生很大的变化!!总有一个额外的情况下,各级水平的因素是用来代表一个家系的个体在Pedigree。然而,nlevels.Pedigree打印出的实际使用水平未知的,即代表个人的水平,不计入结果。


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


Gregor Gorjanc



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

summary.Pedigree, extend
summary.Pedigree,extend


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


  # Deafult example[Deafult例如]
  ped <- generatePedigree(5)
  nIndividual(ped)

  # Other id columns[其他ID列]
  nIndividual(ped, col="father")
  nIndividual(ped, col="mother")

  # Remove individuals with unknown fathers - FIXME[删除个人未知的父亲 -  FIXME]
  # ped &lt;- ped[!is.na(ped, col="father"), ][PED < -  PED [!is.na。(PED,COL =“父亲”),]]
  # nIndividual(ped)[nIndividual(PED)]
  # nIndividual(ped, extend=FALSE)[nIndividual(PED,延长为FALSE)]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-23 05:42 , Processed in 0.032469 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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