vecTxt | R Documentation |
Easily parse a vector into a character value
vecTxt(
vector,
delimiter = ", ",
useQuote = "",
firstDelimiter = NULL,
lastDelimiter = " & ",
firstElements = 0,
lastElements = 1,
lastHasPrecedence = TRUE,
colFun = NULL
)
vecTxtQ(vector, useQuote = "'", ...)
vector |
The vector to process. |
delimiter, firstDelimiter, lastDelimiter |
The delimiters
to use for respectively the middle, first
|
useQuote |
This character string is pre- and appended to all elements;
so use this to quote all elements ( |
firstElements, lastElements |
The number of elements for which to use the first respective last delimiters |
lastHasPrecedence |
If the vector is very short, it's possible that the
sum of firstElements and lastElements is larger than the vector length. In
that case, downwardly adjust the number of elements to separate with the
first delimiter ( |
colFun |
A function to use for coloring. |
... |
Any addition arguments to |
A character vector of length 1.
vecTxtQ(names(mtcars));
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.