getNamedElement(KEGGgraph)
getNamedElement()所属R语言包:KEGGgraph
Extract the value in a vector by name
提取的名字在一个向量的值
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The function extracts the value(s) in a named vector by given name(s), in case no element is found with the given name, NA will be returned
在一个给定的名称(S)的名字命名的向量功能提取值(S),元素的情况下没有发现给定的名称,将返回不适用
用法----------Usage----------
getNamedElement(vector, name)
参数----------Arguments----------
参数:vector
A named vector of any data type
命名为向量的任何数据类型
参数:name
Wanted name
通缉名称
值----------Value----------
The elements with the given name, 'NA' in case no one was found
具有给定名称的元素,“不适用”的情况下没有人被发现
作者(S)----------Author(s)----------
Jitao David Zhang <a href="mailto:jitao_david.zhang@roche.com">mailto:jitao_david.zhang@roche.com</a>
举例----------Examples----------
vec <- c(first="Hamburg", second="Hoffenheim",third="Bremen")
getNamedElement(vec, "third")
getNamedElement(vec, "last")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|