R语言【taxlist】——tax2traits():将分类信息设置为分类单元特征

Package taxlist version 0.2.4


Description

分类法分类可以包含在taxonRelations插槽提供的信息中的 taxlist 对象中。然而,对于统计分析来说,将这些信息插入到插槽taxonTraits中可能更方便。

Usage

R 复制代码
tax2traits(object, ...)

## S3 method for class 'taxlist'
tax2traits(object, get_names = FALSE, ...)

Arguments

参数【object】:一个 taxlist 对象。

参数【...】:在方法之间传递的进一步参数。

参数【get_names】:指示是否应该检索分类单元名称而不是分类单元id的逻辑值。


Details

此函数只能应用于包含父子关系和分类级别信息的对象。


Value

类taxlist的对象,将分类法添加为特征。


Examples

R 复制代码
Acanthaceae <- subset(x = Easplist, subset = TaxonName == "Acanthaceae",
  slot = "names", keep_children = TRUE)
summary(Acanthaceae)
复制代码
object size: 29.9 Kb 
validation of 'taxlist' object: TRUE 

number of taxon usage names: 143 
number of taxon concepts: 113 
trait entries: 9 
number of trait variables: 1 
taxon views: 3 

concepts with parents: 112 
concepts with children: 28 

hierarchical levels: form < variety < subspecies < species < complex < genus < family 
number of concepts in level form: 0
number of concepts in level variety: 2
number of concepts in level subspecies: 3
number of concepts in level species: 84
number of concepts in level complex: 0
number of concepts in level genus: 23
number of concepts in level family: 1
R 复制代码
Acanthaceae <- tax2traits(Acanthaceae, get_names = TRUE)
head(taxon_traits(Acanthaceae))
复制代码
    TaxonConceptID       life_form variety subspecies               species      genus
14              59 obligate_annual    <NA>       <NA>   Asystasia gangetica  Asystasia
15              60 obligate_annual    <NA>       <NA>  Asystasia mysurensis  Asystasia
97             319 obligate_annual    <NA>       <NA> Hygrophila auriculata Hygrophila
108            341    phanerophyte    <NA>       <NA>     Justicia betonica   Justicia
238          50264  climbing_plant    <NA>       <NA>      Thunbergia alata Thunbergia
241          50423    phanerophyte    <NA>       <NA>    Hypoestes aristata  Hypoestes
         family
14  Acanthaceae
15  Acanthaceae
97  Acanthaceae
108 Acanthaceae
238 Acanthaceae
241 Acanthaceae
相关推荐
晓晓hh1 小时前
JavaSE学习——迭代器
java·开发语言·学习
Laurence1 小时前
C++ 引入第三方库(一):直接引入源文件
开发语言·c++·第三方库·添加·添加库·添加包·源文件
kyriewen111 小时前
你点的“刷新”是假刷新?前端路由的瞒天过海术
开发语言·前端·javascript·ecmascript·html5
014-code2 小时前
String.intern() 到底干了什么
java·开发语言·面试
421!2 小时前
GPIO工作原理以及核心
开发语言·单片机·嵌入式硬件·学习
摇滚侠2 小时前
JAVA 项目教程《苍穹外卖-12》,微信小程序项目,前后端分离,从开发到部署
java·开发语言·vue.js·node.js
@insist1232 小时前
网络工程师-生成树协议(STP/RSTP/MSTP)核心原理与应用
服务器·开发语言·网络工程师·软考·软件水平考试
野生技术架构师3 小时前
2026年牛客网最新Java面试题总结
java·开发语言
环黄金线HHJX.3 小时前
Tuan符号系统重塑智能开发
开发语言·人工智能·算法·编辑器
dog2503 小时前
对数的大脑应对指数的世界
开发语言·php