indent_string {rtables} | R Documentation |
Indent strings
Description
Used in rtables to indent row names for the ASCII output.
Usage
indent_string(x, indent = 0, incr = 2, including_newline = TRUE)
Arguments
x |
( |
indent |
( |
incr |
( |
including_newline |
( |
Value
x
, indented with left-padding with indent * incr
white-spaces.
Examples
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)
[Package rtables version 0.6.9 Index]