Description Usage Arguments Author(s) Examples
The available functions are:
paste_()
is the same as paste0
but uses an underscore to separate
cat0()
is analogous to paste0
but for cat
catN()
is the same as cat0
but automatically inserts a new line after the cat
paste_series()
paste a series of things with a conjunction
paste_oxford()
shortcut for paste_series
as oxford comma
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
... |
one or more R objects, to be converted to character vectors. |
collapse |
an optional character string to separate the results. Not
|
file |
A connection, or a character string naming the file
to print to. If |
fill |
a logical or (positive) numeric controlling how the output is
broken into successive lines. If |
labels |
character vector of labels for the lines printed.
Ignored if |
append |
logical. Only used if the argument |
sep |
a character string to separate the terms. Not
|
conjunction |
the conjunction to use to collapse the final elements in the series (such as and, or, &, or something else) |
use_oxford_comma |
whether to use the oxford comma in the series (standard in American English) or to not use the oxford comma |
Steven Nydick, steven.nydick@kornferry.com
1 2 3 4 5 6 7 8 9 10 11 12 13 | paste_series("a")
paste_series("a", "b")
paste_series("a", "b", "c")
# works if putting entries into c function
paste_series(c("a", "b", "c"), "d")
# can use oxford comma or not
paste_series("a", "b", "c",
use_oxford_comma = TRUE)
paste_series("a", "b", "c",
use_oxford_comma = FALSE)
# makes no difference if fewer than 3 items
paste_series("a", "b",
use_oxford_comma = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.