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

R语言中文网

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

R语言从对象获取详细的解析信息getParseData()函数-中英文对照帮助文档

[复制链接]
发表于 2020-8-21 08:04:00 | 显示全部楼层 |阅读模式
        R语言从对象获取详细的解析信息getParseData()函数-中英文对照帮助文档

                                         By MicroRbt Martinez PhD

R语言函数名:getParseData()
R语言函数功能:从对象获取详细的解析信息
来自资源库:基础库(R语言自带)
getParseData()函数所属R语言包:所在R包具体名称、包功能的中英文双语描述见正文后面'--所在R语言包信息--'部分。

描述-----Description-----

If the "keep.source" option is TRUE, R's parser will attach detailed information on the object it has parsed. These functions retrieve that information.
如果"keep.source"选项为TRUE,则R的解析器将在其已解析的对象上附加详细信息。这些功能检索该信息。


使用方法-----Usage-----

getParseData(x, includeText = NA)
getParseText(parseData, id)

参数-----Arguments-----

参数x介绍: an expression returned from parse, or a function or other object with source reference information
从parse或带有源参考信息的函数或其他对象返回的表达式

参数includeText介绍: logical; whether to include the text of parsed items in the result
逻辑是否在结果中包含解析项目的文本

参数parseData介绍: a data frame returned from getParseData
从getParseData返回的数据帧

参数id介绍: a vector of item identifiers whose text is to be retrieved
要检索其文本的项目标识符的向量


详情-----Details-----

In version 3.0.0, the R parser was modified to include code written by Romain Francois in his parser package. This constructs a detailed table of information about every token and higher level construct in parsed code. This table is stored in the srcfile record associated with source references in the parsed code, and retrieved by the getParseData function.
在版本3.0.0中,对R解析器进行了修改,以将Romain Francois编写的代码包含在其parser程序包中。这将构造有关每个令牌的详细信息表,并在解析的代码中提供更高级的构造。该表存储在与解析代码中的源引用关联的srcfile记录中,并由getParseData函数检索。


值-----Value-----
-----未完,待续-----,↓↓↓展开剩余72%↓↓↓
购买主题 前行需要您的支持,请赞助作者 【15 金钱】 就能浏览全部100%内容啦!(本贴一次赞助、永久可读)
回复

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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