R语言【taxlist】——get_children(),get_parents():检索分类概念的子类群或父类群

Package taxlist version 0.2.4


Description

检索所查询分类单元概念的所有子概念或父概念。


Usage

R 复制代码
get_children(taxlist, ...)

## S3 method for class 'taxlist'
get_children(taxlist, ConceptID, ...)

get_parents(taxlist, ...)

## S3 method for class 'taxlist'
get_parents(taxlist, ConceptID, ...)

Arguments

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

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

参数【ConcertID】:用于选择父或子或分类表子集的概念id。


Details

该方法生成 taxlist 对象的子集,包括所查询分类单元概念的所有子或父级概念。

在这些方法中可以查询多个概念。

参数【ConceptID】可以是一个概念ID的向量,或是一个输入的 taxlist 对象的子集。


Value

一个 taxlist 对象,包含所请求的概念以及父子级。


Examples

++准备一个科级子集:++

R 复制代码
Ebenaceae <- subset(x = Easplist, subset = TaxonName == "Ebenaceae")
Ebenaceae
复制代码
object size: 6.7 Kb 
validation of 'taxlist' object: TRUE 

number of taxon usage names: 1 
number of taxon concepts: 1 
trait entries: 0 
number of trait variables: 1 
taxon views: 3 

hierarchical levels: form < variety < subspecies < species < complex < genus < family 
number of concepts in level form: 0
number of concepts in level variety: 0
number of concepts in level subspecies: 0
number of concepts in level species: 0
number of concepts in level complex: 0
number of concepts in level genus: 0
number of concepts in level family: 1

++根据子集,去检索子概念:++

R 复制代码
Ebenaceae <- get_children(Easplist, Ebenaceae)
Ebenaceae
复制代码
object size: 8.5 Kb 
validation of 'taxlist' object: TRUE 

number of taxon usage names: 10 
number of taxon concepts: 9 
trait entries: 0 
number of trait variables: 1 
taxon views: 3 

concepts with parents: 8 
concepts with children: 3 

hierarchical levels: form < variety < subspecies < species < complex < genus < family 
number of concepts in level form: 0
number of concepts in level variety: 0
number of concepts in level subspecies: 0
number of concepts in level species: 6
number of concepts in level complex: 0
number of concepts in level genus: 2
number of concepts in level family: 1

++再准备一个种级子集:++

R 复制代码
Diostri <- subset(x = Easplist, subset = TaxonConceptID == 52403,
    slot = "relations")
Diostri
复制代码
object size: 6.7 Kb 
validation of 'taxlist' object: TRUE 

number of taxon usage names: 1 
number of taxon concepts: 1 
trait entries: 0 
number of trait variables: 1 
taxon views: 3 

hierarchical levels: form < variety < subspecies < species < complex < genus < family 
number of concepts in level form: 0
number of concepts in level variety: 0
number of concepts in level subspecies: 0
number of concepts in level species: 1
number of concepts in level complex: 0
number of concepts in level genus: 0
number of concepts in level family: 0

++随即查找它的父概念:++

R 复制代码
Diostri <- get_parents(Easplist, Diostri)
Diostri
复制代码
object size: 7.1 Kb 
validation of 'taxlist' object: TRUE 

number of taxon usage names: 3 
number of taxon concepts: 3 
trait entries: 0 
number of trait variables: 1 
taxon views: 3 

concepts with parents: 2 
concepts with children: 2 

hierarchical levels: form < variety < subspecies < species < complex < genus < family 
number of concepts in level form: 0
number of concepts in level variety: 0
number of concepts in level subspecies: 0
number of concepts in level species: 1
number of concepts in level complex: 0
number of concepts in level genus: 1
number of concepts in level family: 1
相关推荐
hacker70733 分钟前
探索数据的艺术:R语言与Origin的完美结合
开发语言·r语言·origin
计算机毕设定制辅导-无忧学长39 分钟前
Redis 在小型项目中的实战运用
数据库·redis·mybatis
小冯的编程学习之路40 分钟前
【Redis】:初识Redis
数据库·redis·缓存
炸鸡配泡面1 小时前
Qt 12.28 day3
java·开发语言
get_money_1 小时前
代码随想录38 322. 零钱兑换,279.完全平方数,本周小结动态规划,139.单词拆分,动态规划:关于多重背包,你该了解这些!背包问题总结篇。
java·开发语言·笔记·算法·动态规划
Maiko Star2 小时前
MySQL管理
数据库·mysql·oracle
?333332 小时前
vulnhub靶场-jangow-01-1.0.1(截止至获取shell)
linux·数据库·mysql·安全·网络安全
m0_748245742 小时前
MySQL root用户密码忘记怎么办(Reset root account password)
数据库·mysql·adb
不听话的好孩子3 小时前
基于深度学习(HyperLPR3框架)的中文车牌识别系统-Qt开发UI
开发语言·qt·ui
SomeB1oody4 小时前
【Rust自学】7.6. 将模块拆分为不同文件
开发语言·后端·rust