powered by
Format strings for pretty output
surround(x, pre = " ", post = " ", width = 8, ...)
a vector of strings padded to the desired width
a vector
text to prepend onto string
text to postpend onto string
desired width of string
additional arguments passed to format()
format()
surround(rbinom(10,20,.5), " ", " ", width=4) surround(rnorm(10), " ", " ", width=8, digits = 2, nsmall = 2)
Run the code above in your browser using DataLab