找回密码
 注册
查看: 387|回复: 0

R语言 sfsmisc包 vcat()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 01:43:17 | 显示全部楼层 |阅读模式
vcat(sfsmisc)
vcat()所属R语言包:sfsmisc

                                        Paste Utilities – Concatenate Strings
                                         粘贴工具 - 连接字符串

                                         译者:生物统计家园网 机器人LoveR

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

Concatenate vector elements or anything using paste(*, collapse = .). These are simple short abbreviations I have been using in my own codes in many places.
串联,向量元素任何使用paste(*, collapse = .)的。这些简短的缩写,在很多地方,我一直在用我自己的代码。


用法----------Usage----------


vcat(vec, sep = " ")
ccat(...)



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

参数:vec, ...
any vector and other arguments to be pasted to together.
任何向量和其它参数被粘贴到了一起。


参数:sep
the separator to use, see the Details section.
使用的分隔符的详细信息,请参阅“一节。


Details

详细信息----------Details----------

The functions are really just defined as<br> vcat :=  function(vec, sep = " ") paste(vec, collapse = sep)
这些功能实际上只是作为参考VCAT定义:=function(vec, sep = " ") paste(vec, collapse = sep)

ccat :=  function(...)    paste(..., collapse = "", sep = "")
CCAT:=function(...)    paste(..., collapse = "", sep = "")


值----------Value----------

a character string (of length 1) with the concatenated arguments.
一个字符串(长度为1)的连接参数。


(作者)----------Author(s)----------


Martin Maechler, early 1990's.



参见----------See Also----------

paste, as.character, format. cat() is really for printing.
paste,as.character,format。 cat()是真正进行打印。


实例----------Examples----------


ch <- "is"
ccat("This ", ch, " it: ", 100, "%")
vv <- c(1,pi, 20.4)
vcat(vv)
vcat(vv, sep = ", ")

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-5-22 00:10 , Processed in 0.026192 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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