Learn R Programming

formatters (version 0.5.11)

default_horizontal_sep: Default horizontal separator

Description

The default horizontal separator character which can be displayed in the current charset for use in rendering table-like objects.

The default horizontal separator character which can be displayed in the current charset for use in rendering table-like objects.

Usage

default_hsep()

set_default_hsep(hsep_char)

default_hsep()

set_default_hsep(hsep_char)

Value

unicode 2014 (long dash for generating solid horizontal line) if in a locale that uses a UTF character set, otherwise an ASCII hyphen with a once-per-session warning.

unicode 2014 (long dash for generating solid horizontal line) if in a locale that uses a UTF character set, otherwise an ASCII hyphen with a once-per-session warning.

Arguments

hsep_char

(string)
character that will be set in the R environment options as the default horizontal separator. Must be a single character. Use getOption("formatters_default_hsep") to get its current value (NULL if not set).

Examples

Run this code
default_hsep()
set_default_hsep("o")
default_hsep()

default_hsep()
set_default_hsep("o")
default_hsep()

Run the code above in your browser using DataLab