View source: R/string_functions.R
spaces | R Documentation |
A function to create a string of some number of blank spaces. This function is useful when trying to align things.
spaces(num)
num |
The desired number of spaces. |
A single character vector of blank spaces.
# Create spaces
spaces(10)
# [1] " "
# Use spaces to separate something
str <- "Left" %p% spaces(40) %p% "Right"
str
# [1] "Left Right"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.