powered by
Used in rtables to indent row names for the ASCII output.
indent_string(x, indent = 0, incr = 2, including_newline = TRUE)
x, indented with left-padding with indent * incr white-spaces.
x
indent * incr
(character) a character vector.
character
(numeric) a vector of non-negative integers of length length(x).
numeric
length(x)
(integer(1)) a non-negative number of spaces per indent level.
integer(1)
(flag) whether newlines should also be indented.
flag
indent_string("a", 0) indent_string("a", 1) indent_string(letters[1:3], 0:2) indent_string(paste0(letters[1:3], "\n", LETTERS[1:3]), 0:2)
Run the code above in your browser using DataLab