spc | R Documentation |
Returns 'char' X_i number of times for each element i of X. Useful for padding for alignment purposes.
spc(X, char = " ")
X |
numeric vector of number of repeats |
char |
The character to repeat (longer will be shortened) |
returns vectors of strings of char, lengths X
Nicholas Cooper njcooper@gmx.co.uk
rmv.spc
cat(paste(spc(9),"123\n")) cat(paste(spc(8),"1234\n")) spc(c(1:5),".")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.