To print a blank (empty) space in R, you can use the cat()
function with an empty argument or with the sep = ""
option to remove any separators between arguments:
main.r27 chars3 lines
You can also use the print()
function with the quote = FALSE
and na.print = ""
options to print an empty string:
main.r40 chars2 lines
Alternatively, you can use the invisible()
function to generate a blank output without printing anything to the console:
main.r12 chars2 lines
gistlibby LogSnag