R语言允许重新列出unlist()对象relist()函数-中英文对照帮助文档
By MicroRbt Martinez PhD
R语言函数名:relist()
R语言函数功能:允许重新列出unlist()对象
来自资源库:基础库(R语言自带)
relist()函数所属R语言包:所在R包具体名称、包功能的中英文双语描述见正文后面'--所在R语言包信息--'部分。
描述-----Description-----
relist() is an S3 generic function with a few methods in order to allow easy inversion of unlist(obj) when that is used with an object obj of (S3) class "relistable".
relist()是一种S3泛型函数,具有一些方法,以便与(S3)类"relistable"的对象obj一起使用时,可以轻松转换unlist(obj)。
使用方法-----Usage-----
relist(flesh, skeleton)
## Default S3 methodefault S3 method:
默认的S3方法:
relist(flesh, skeleton = attr(flesh, "skeleton"))
## S3 method for class 'factor' S3 method for class 'factor'
relist(flesh, skeleton = attr(flesh, "skeleton"))
## S3 method for class 'list' S3 method for class 'list'
relist(flesh, skeleton = attr(flesh, "skeleton"))
## S3 method for class 'matrix' S3 method for class 'matrix'
relist(flesh, skeleton = attr(flesh, "skeleton"))
as.relistable(x)
is.relistable(x)
## S3 method for class 'relistable' S3 method for class 'relistable'
unlist(x, recursive = TRUE, use.names = TRUE)
参数-----Arguments-----
参数flesh介绍: a vector to be relisted
要重新列出的载体
参数skeleton介绍: a list, the structure of which determines the structure of the result
一个列表,其结构决
-----未完,待续-----,↓↓↓展开剩余72%↓↓↓
|