Skip to content

Commit 9fdc659

Browse files
paleolimbothadley
authored andcommitted
Add an alternative description of str_c (#277)
1 parent fec530c commit 9fdc659

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

R/c.r

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#' Join multiple strings into a single string.
22
#'
3+
#' Joins two or more vectors element-wise into a single character vector,
4+
#' optionally inserting `sep` between input vectors. If `collapse` is not `NULL`,
5+
#' it will be inserted between elements of the result, returning a character
6+
#' vector of length 1.
7+
#'
38
#' To understand how `str_c` works, you need to imagine that you are building up
49
#' a matrix of strings. Each input argument forms a column, and is expanded to
510
#' the length of the longest argument, using the usual recyling rules. The

man/str_c.Rd

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)