strWrap | R Documentation |
A wrapper for as.character
that writes to the Mac/Windows
clipboard.
strWrap(text = "clipboard", width = 70, copy2clip = interactive())
text |
character vector, or an object which can be converted to a
character vector by |
width |
A positive integer giving the target column for wrapping lines in the output. |
copy2clip |
logical. If |
Prints a wrapped text vector to the console and copies the wrapped text to the clipboard on a Mac or Windows machine.
strwrap
## Not run:
x <- paste2(DATA$state, sep = " " )
strWrap(x)
strWrap(x, 10)
#should be copied to the clipboard on a Mac or Windows machine.
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.