capture.and.write(sfsmisc)
capture.and.write()所属R语言包:sfsmisc
Capture output and Write / Print First and Last Parts
捕捉输出和写/打印第一个和最后一个零件
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Capture output and print first and last parts, eliding middle parts. P articularly useful for teaching purposes, and e.g., in Sweave
捕捉输出和打印第一个和最后一个部分,eliding中间部分。 P关节可作教学用途,例如,在Sweave
用法----------Usage----------
capture.and.write(EXPR, first, last = 2, middle = NA,
i.middle, dotdots = " ....... ", n.dots = 2)
参数----------Arguments----------
参数:EXPR
the (literal) expression the output of which is to be captured.
(文字)的表达它的输出是被捕获。
参数:first
integer: how many lines should be printed at beginning.
整数:有多少行应在开始打印。
参数:last
integer: how many lines should be printed at the end.
整数:有多少行应印在最后。
参数:middle
numeric (or NA logical):
数字(或NA逻辑):
参数:i.middle
index start of middle part
指数的中间部分开始
参数:dotdots
string to be used for elided lines
字符串用于删节线
参数:n.dots
number of dotdots .... </table>
数量dotdots.... </ TABLE>
值----------Value----------
return value of writeLines
返回值writeLines
(作者)----------Author(s)----------
Martin Maechler
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|