设为首页收藏本站获取积分奖励

R语言中文网

 找回密码
 立即注册
查看: 593|回复: 0

R语言允许重新列出unlist()对象relist()函数-中英文对照帮助文档

[复制链接]
发表于 2020-8-21 08:12:21 | 显示全部楼层 |阅读模式
        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%↓↓↓
购买主题 前行需要您的支持,请赞助作者 【15 金钱】 就能浏览全部100%内容啦!(本贴一次赞助、永久可读)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|R语言中文网    

GMT+8, 2024-5-20 21:37 , Processed in 0.027170 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表