writeCOMMENT(RPMG)
writeCOMMENT()所属R语言包:RPMG
write Code Comments
写代码注释
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Create a print out of comments for insertion in computer code. Used for separating important blocks of code with helpful, easy to find comments.
创建一个打印出来的插入计算机代码的注释。用于分离重要的代码块有帮助的,很容易找到的意见。
用法----------Usage----------
writeCOMMENT(temp, space = " ", letspace = "", MSUB = "0", prefix = "", suffix = "")
参数----------Arguments----------
参数:temp
text string
文本字符串
参数:space
space between words
字与字之间的空间
参数:letspace
space between letters
字母之间的空间
参数:MSUB
text, substitute character, if this is "ALL", then each letter is substituted. default=NULL
文本,替换字符,如果这是“ALL”,然后每个字母被取代。默认值= NULL
参数:prefix
prefix before the letters
在字母前的前缀
参数:suffix
suffix after the letters
后缀字母后
Details
详细信息----------Details----------
This is a function used for creating comments in computer code. Letters are a fixed height of 7 lines
这是一个函数,用于创建计算机代码中的注释。 7行,信件是一个固定的高度
值----------Value----------
参数:List
26 letters
26个英文字母
注意----------Note----------
Code dumps to the screen, then you must paste in code. If sent in an email, spaces are not preserved. The letters are stored in the routine, these can be changed, but the constant (7 lines) common height should be preserved. Each letter should be one block.
代码转储到屏幕上,那么你必须将其粘贴在代码中。如果通过电子邮件发送的,空间不会被保留。存储在常规的信件,这些都可以改变,但应保持常数(7号线)共同的高度。每一个字母应该是一个块。
(作者)----------Author(s)----------
Jonathan M. Lees<jonathan.lees@unc.edu>
实例----------Examples----------
writeCOMMENT("GO TARHEELS", space=" ", letspace = "", MSUB="ALL", prefix="/*" , suffix="*/" )
writeCOMMENT("START", space=" ", letspace = "", MSUB="ALL", prefix="#######" )[######“)]
writeCOMMENT("J M lees", space=" ", letspace = "", MSUB="0" )
writeCOMMENT("J. M. Lees", space=" ", letspace = "", MSUB="0" )
writeCOMMENT("J. M. Lees", space=" ", letspace = "", MSUB="." )
writeCOMMENT("J. M. Lees", space=" ", letspace = "" )
writeCOMMENT("J. M. Lees", space="---------", letspace = "" )
writeCOMMENT("J. M. Lees", space=" ", letspace = "", MSUB="ALL" )
writeCOMMENT("J_M_Lees", space=" ", letspace = "", MSUB="ALL" )
writeCOMMENT("abcdefghi")
writeCOMMENT("jklmnop")
writeCOMMENT("qrstuvwxyz")
writeCOMMENT("1234567890")
writeCOMMENT("WHY?!.-+=_")
writeCOMMENT("2+2=4")
writeCOMMENT("e*exp(pi*i)=-1")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|