1\name{vcat}
2\alias{vcat}
3\alias{ccat}
4\title{Paste Utilities -- Concatenate Strings}
5\description{
6  Con\bold{cat}enate vector elements or anything using
7  \code{\link{paste}(*, collapse = .)}.
8  These are simple short abbreviations I have been using in my own codes
9  in many places.
10}
11\usage{
12vcat(vec, sep = " ")
13ccat(...)
14}
15\arguments{
16  \item{vec, \dots}{any vector and other arguments to be pasted to together.}
17  \item{sep}{the separator to use, see the \emph{Details} section.}
18}
19\details{The functions are really just defined as\cr
20 vcat :=  \code{function(vec, sep = " ") paste(vec, collapse = sep)}
21
22 ccat :=  \code{function(...)            paste(..., collapse = "", sep = "")}
23}
24\value{
25  a character string (of length 1) with the concatenated arguments.
26}
27\author{Martin Maechler, early 1990's.}
28\seealso{\code{\link{paste}}, \code{\link{as.character}},
29    \code{\link{format}}. \code{\link{cat}()} is really for printing.
30}
31\examples{
32ch <- "is"
33ccat("This ", ch, " it: ", 100, "\%")
34vv <- c(1,pi, 20.4)
35vcat(vv)
36vcat(vv, sep = ", ")
37}
38\keyword{print}
39\keyword{utilities}
40