text_wrap: Wrap Text To Adequate Width

Description Usage Arguments Value See Also Examples

View source: R/text_wrap.R

Description

A wrapper around strwrap that creates wrapped text for captions.

Usage

1

Arguments

text

A character vector that is too long to fit in a caption.

width

Number of characters to allow in text, defaults to 50.

Value

A character vector containing the category labels.

See Also

Other utility functions: indicator_categories()

Examples

1
2
3
4
5
{
my_text <- "Regional gross domestic product by NUTS 2 regions - million EUR"
nchar(my_text)
text_wrap (my_text, 40)
}

antaldaniel/satellitereport documentation built on Aug. 7, 2020, 8:37 a.m.