Rev 7081 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{paste}\title{Concatenate Strings}\usage{paste(\dots, sep = " ", collapse = NULL)}\alias{paste}\arguments{\item{\dots}{one or more \R objects, to be coerced to character vectors.}\item{sep}{a character string to separate the terms.}\item{collapse}{an optional character string to separate the results.}}\description{Concatenate character vectors.}\details{\code{paste} converts its arguments to character strings, andconcatenates them (separating them by the string given by \code{sep}).If the arguments are vectors, they are concatenated term-by-term togive a character vector result.If a value is specified for \code{collapse}, the values in the resultare then concatenated into a single string, with the elements beingseparated by the value of \code{collapse}.}\value{A character vector of the concatenated values.}\seealso{\code{\link{as.character}}, \code{\link{substr}}, \code{\link{nchar}},\code{\link{strsplit}}.}\examples{paste(1:12) # same as as.character(..)paste("A", 1:6, sep = "")paste("Today is", date())}\keyword{character}