R语言【taxlist】——merge_taxa():整合概念和移除名称

Package taxlist version 0.2.4


Description

将分类概念合并为单个 taxlist 对象。


Usage

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

## S3 method for class 'taxlist'
merge_taxa(object, concepts, level, print_output = FALSE, ...)

Arguments

参数【object】:taxlist 对象。

参数【...】:要传递给其他方法或从其他方法传递的其他参数。

参数【concepts】:数值(整数)向量,包括要合并的分类概念。

参数【level】:字符向量,指示合并的最低级别。

参数【print_output】:指示是否应在控制台中显示合并概念的逻辑值。


Details

参数【concepts】中指示的分类概念将合并为一个概念。

新概念继承了 slots taxonRelations 和 taxonTraits 的 ID 和相应的属性,这些属性来自参数【concepts】中指示的第一个分类概念。

为方便起见,可以通过设置 print_output=TRUE 来显示生成的概念,但仅在使用参数【concepts】时显示。

此函数的另一种应用是通过参数级别实现的,其中所有较低等级的分类单元都将合并到指定的级别或更高级别(如果合并分类群的父级处于较高级别)。


Value

一个 taxlist 对象。


Examples

R 复制代码
summary(Easplist, c(206, 197))
复制代码
------------------------------ 
concept ID: 206 
view ID: 1 
level: species 
parent: 54853 Cyperus L. 

# accepted name: 
206 Cyperus papyrus L. 

# synonyms (2): 
52612 Cyperus papyrus ssp. antiquorum (Willd.) Chiov. 
52613 Cyperus papyrus ssp. nyassicus Chiov. 
------------------------------ 
concept ID: 197 
view ID: 1 
level: species 
parent: 54853 Cyperus L. 

# accepted name: 
197 Cyperus dives Delile 

# synonyms (5): 
52000 Cyperus immensus C.B. Clarke 
52600 Cyperus exaltatus var. dives (Delile) C.B. Clarke 
52601 Cyperus alopecuroides var. dives Boeckeler 
52602 Cyperus immensus var. petherickii (C.B. Clarke) Kük. 
52603 Cyperus petherickii C.B. Clarke 
------------------------------
R 复制代码
sp_list <- merge_taxa(object = Easplist, concepts = c(206, 197),
    print_output = TRUE)
复制代码
------------------------------ 
concept ID: 206 
view ID: 1 
level: species 
parent: 54853 Cyperus L. 

# accepted name: 
206 Cyperus papyrus L. 

# synonyms (8): 
197 Cyperus dives Delile 
52000 Cyperus immensus C.B. Clarke 
52600 Cyperus exaltatus var. dives (Delile) C.B. Clarke 
52601 Cyperus alopecuroides var. dives Boeckeler 
52602 Cyperus immensus var. petherickii (C.B. Clarke) Kük. 
52603 Cyperus petherickii C.B. Clarke 
52612 Cyperus papyrus ssp. antiquorum (Willd.) Chiov. 
52613 Cyperus papyrus ssp. nyassicus Chiov. 
------------------------------
相关推荐
iCxhust23 分钟前
c# U盘映像生成工具
开发语言·单片机·c#
yangzhi_emo1 小时前
ES6笔记2
开发语言·前端·javascript
emplace_back2 小时前
C# 集合表达式和展开运算符 (..) 详解
开发语言·windows·c#
jz_ddk2 小时前
[学习] C语言数学库函数背后的故事:`double erf(double x)`
c语言·开发语言·学习
萧曵 丶2 小时前
Rust 所有权系统:深入浅出指南
开发语言·后端·rust
xiaolang_8616_wjl2 小时前
c++文字游戏_闯关打怪2.0(开源)
开发语言·c++·开源
收破烂的小熊猫~2 小时前
《Java修仙传:从凡胎到码帝》第四章:设计模式破万法
java·开发语言·设计模式
nananaij3 小时前
【Python进阶篇 面向对象程序设计(3) 继承】
开发语言·python·神经网络·pycharm
阿蒙Amon3 小时前
为什么 12 版仍封神?《C# 高级编程》:从.NET 5 到实战架构,进阶者绕不开的必修课
开发语言·c#