Learn R Programming

dynamicTreeCut (version 1.63-1)

indentSpaces: Spaces for Indented Output

Description

Returns a character string containing two times indent spaces.

Usage

indentSpaces(indent = 0)

Arguments

indent
Desired level of indentation. The number of returned spaces will be twice this argument.

Value

  • A character string containing spaces, of length twice indent.

Examples

Run this code
spaces = indentSpaces(0);
print(paste(spaces, "This output is not indented..."));
spaces = indentSpaces(1);
print(paste(spaces, "...while this one is."))

Run the code above in your browser using DataLab