powered by
A function to create a string of some number of blank spaces. This function is useful when trying to align things.
spaces(num)
A single character vector of blank spaces.
The desired number of spaces.
# Create spaces spaces(10) # [1] " " # Use spaces to separate something str <- "Left" %p% spaces(40) %p% "Right" str # [1] "Left Right"
Run the code above in your browser using DataLab