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

R语言中文网

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

R语言缩写字符串abbreviate()函数-中英文对照帮助文档

[复制链接]
发表于 2020-8-20 22:37:14 | 显示全部楼层 |阅读模式
        R语言缩写字符串abbreviate()函数-中英文对照帮助文档

                                         By MicroRbt Martinez PhD

R语言函数名:abbreviate()
R语言函数功能:缩写字符串
来自资源库:基础库(R语言自带)
abbreviate()函数所属R语言包:所在R包具体名称、包功能的中英文双语描述见正文后面'--所在R语言包信息--'部分。

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

Abbreviate strings to at least minlength characters, such that they remain unique (if they were), unless strict = TRUE.
至少将字符串缩写为minlength字符,以使它们保持unique(如果有),除非strict = TRUE。


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

abbreviate(names.arg, minlength = 4, use.classes = TRUE,
dot = FALSE, strict = FALSE,
method = c("left.kept", "both.sides"), named = TRUE)

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

参数names.arg介绍: a character vector of names to be abbreviated, or an object to be coerced to a character vector by as.character.
名称要缩写的字符向量,或as.character要强制转换为字符向量的对象。

参数minlength介绍: the minimum length of the abbreviations.
缩写的最小长度。

参数use.classes介绍: logical: should lowercase characters be removed first?
逻辑:应该先删除小写字符吗?

参数dot介绍: logical: should a dot (".") be appended?
逻辑:是否应附加一个点(".")?

参数strict介绍: logical: should minlength be observed strictly? Note that setting strict = TRUE may return non-unique strings.
逻辑:应严格遵守minlength吗?请注意,设置strict = TRUE可能会返回non唯一字符串。

参数method介绍: a character string specifying the method used with default "left.kept", see Details below. Partial matches allowed.
一个字符串,指定默认"left.kept"所使用的方法,请参见下面的Details。允许部分匹配。

参数named介绍: logical: should names (with original vector) be returned.
逻辑:应返回names(带有原始向量)。


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-20 22:26 , Processed in 0.030004 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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