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
相关推荐
itmigrate7 小时前
Redis 开发高频隐形踩坑记录
开发语言·java-ee
白远山8 小时前
本地游戏代练源码开发实战:架构设计与核心功能实现指南
java·开发语言·架构·需求分析
aramae8 小时前
Python 使用库:标准库与第三方库实战
服务器·开发语言·windows·python
景熙55238 小时前
14.Java 集合框架从入门到源码万字详解(含 ArrayList/LinkedList/HashMap 源码、泛型通配符、红黑树)
java·开发语言·数据结构·算法
Ivanqhz10 小时前
Unigram 算法
开发语言·人工智能·python·深度学习·mlir
Jazz_z10 小时前
如何用 C# 读取 Word 中的表格数据
开发语言·c#
郝学胜-神的一滴10 小时前
C++20模板元编程 04:变量模板 别名模板与模板Lambda实战
服务器·开发语言·数据结构·c++·程序人生
驭渊的小故事11 小时前
Java 项目-jckson序列化工具
java·开发语言
君顾111 小时前
上海24小时自助健身房系统开发实战指南:从架构设计到功能实现
java·开发语言·健身房
qq_3449205611 小时前
Qt事件过滤器
开发语言·c++·qt