character decorator {operators} | R Documentation |
Creates string decorators by repeating a pattern either a given number of times or so that it takes a given number of character
txt %x=% n txt %x=|% length.out strrep( txt, n, length.out=getOption("width") )
txt |
Pattern to repeat |
n |
Number of times to repeat the pattern |
length.out |
number of character the output should be |
A character string
Romain Francois <francoisromain@free.fr>
"=" %x=% 80 "<-+->" %x=|% 80 strrep( ".-", n = 10 ) strrep( ".-", length.out = 50 ) strrep( ".-" )