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%↓↓↓
|