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
相关推荐
枯萎穿心攻击9 分钟前
响应式编程入门教程第二节:构建 ObservableProperty<T> — 封装 ReactiveProperty 的高级用法
开发语言·unity·c#·游戏引擎
Eiceblue2 小时前
【免费.NET方案】CSV到PDF与DataTable的快速转换
开发语言·pdf·c#·.net
m0_555762902 小时前
Matlab 频谱分析 (Spectral Analysis)
开发语言·matlab
浪裡遊3 小时前
React Hooks全面解析:从基础到高级的实用指南
开发语言·前端·javascript·react.js·node.js·ecmascript·php
lzb_kkk4 小时前
【C++】C++四种类型转换操作符详解
开发语言·c++·windows·1024程序员节
好开心啊没烦恼4 小时前
Python 数据分析:numpy,说人话,说说数组维度。听故事学知识点怎么这么容易?
开发语言·人工智能·python·数据挖掘·数据分析·numpy
简佐义的博客5 小时前
破解非模式物种GO/KEGG注释难题
开发语言·数据库·后端·oracle·golang
程序员爱钓鱼5 小时前
【无标题】Go语言中的反射机制 — 元编程技巧与注意事项
开发语言·qt
Frank学习路上5 小时前
【IOS】XCode创建firstapp并运行(成为IOS开发者)
开发语言·学习·ios·cocoa·xcode