R语言【taxlist】——levels():获取或设置分类等级列表

Package taxlist version 0.2.4


Description

分类层次结构可以设置为 taxlist 对象中的级别,按从低到高的顺序排列。

在 taxlist 对象中为特定分类概念添加分类级别。此外,概念限制的变化可能涉及其分类层次结构的变化。


Usage

R 复制代码
levels(x)

## S3 method for class 'taxlist'
levels(x)

levels(x) <- value

## S3 replacement method for class 'taxlist'
levels(x) <- value

Arguments

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

参数【value】:替换值的字符向量。


Details

分类级别将作为 taxlist 对象中的因子进行处理。这些级别对于创建相关组的子集很有用(例如,通过函数 get_children() 或 get_parents())。

与父子关系相结合的级别将进一步用于检查分类列表的一致性。

还实现了表单 levels(x) <- value 的替换方法。


Value

具有添加或修改的分类级别的字符向量或 taxlist 对象。


Examples

R 复制代码
levels(Easplist)
复制代码
[1] "form"       "variety"    "subspecies" "species"    "complex"   
[6] "genus"      "family"
R 复制代码
levels(Easplist) <- c("form", "variety", "subspecies", "species", "complex",
    "aggregate", "genus", "family")
summary(Easplist)
复制代码
object size: 761.5 Kb 
validation of 'taxlist' object: TRUE 

number of taxon usage names: 5393 
number of taxon concepts: 3887 
trait entries: 311 
number of trait variables: 1 
taxon views: 3 

concepts with parents: 3698 
concepts with children: 1343 

hierarchical levels: form < variety < subspecies < species < complex < aggregate < genus < family 
number of concepts in level form: 2
number of concepts in level variety: 95
number of concepts in level subspecies: 71
number of concepts in level species: 2521
number of concepts in level complex: 1
number of concepts in level aggregate: 0
number of concepts in level genus: 1011
number of concepts in level family: 186
相关推荐
虾球xz30 分钟前
CppCon 2015 学习:Reactive Stream Processing in Industrial IoT using DDS and Rx
开发语言·c++·物联网·学习
aischang1 小时前
统信桌面专业版如何使用python开发平台jupyter
开发语言·python·jupyter·统信uos
狐凄1 小时前
Python实例题:Python计算概率论
开发语言·python·概率论
q567315232 小时前
分布式增量爬虫实现方案
开发语言·分布式·爬虫·python
勤奋的知更鸟2 小时前
LLaMA-Factory和python版本的兼容性问题解决
开发语言·python·llama-factory
CIb0la2 小时前
Ai自动补全编程工具:llama vscode
运维·开发语言·学习·测试工具·程序人生
1candobetter2 小时前
JAVA后端开发——多租户
java·开发语言
freyazzr2 小时前
C++八股 | Day3 | 智能指针 / 内存管理 / 内存分区 / 内存对齐
开发语言·c++
序属秋秋秋2 小时前
《C++初阶之入门基础》【普通引用 + 常量引用 + 内联函数 + nullptr】
开发语言·c++·笔记
星辰离彬2 小时前
Java 高级泛型实战:8 个场景化编程技巧
java·开发语言·后端·程序人生