xW: Text Processing: Wrap Words to Create New Lines From a...

Description Usage Arguments Details Author(s) Examples

Description

Split a larger line into mulitple lines by wrapping words with inserted line feeds. Primarily for internal use in text processing of knitr output. Not usually referenced by the user.

Usage

1
xW(x, w=90, indent=5) 

Arguments

x

The character string to split into separate lines.

w

Maximum width of each line.

indent

Amount of spaces to indent lines after the first line.

Details

Input is a sentence. Output is the sentence word wrapped into multiple lines, each line up to the maximum width.

Author(s)

David W. Gerbing (Portland State University; gerbing@pdx.edu)

Examples

1
xW("The quick brown fox jumped over the lazy dog's back.", w=30)


Search within the lessR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.