

   paste {base}                                 R Documentation

   CCoonnccaatteennaattee SSttrriinnggss

   DDeessccrriippttiioonn::

        Concatenate character vectors.

   UUssaaggee::

        paste(..., sep = " ", collapse = NULL)

   AArrgguummeennttss::

        ...: one or more R objects, to be coerced to character
             vectors.

        sep: a character string to separate the terms.

   collapse: an optional character string to separate the
             results.

   DDeettaaiillss::

        `paste' converts its arguments to character strings,
        and concatenates them (separating them by the string
        given by `sep').  If the arguments are vectors, they
        are concatenated term-by-term to give a character vec-
        tor result.

        If a value is specified for `collapse', the values in
        the result are then concatenated into a single string,
        with the elements being separated by the value of `col-
        lapse'.

   VVaalluuee::

        A character vector of the  concatenated values.

   SSeeee AAllssoo::

        `as.character', `substr', `nchar', `strsplit'.

   EExxaammpplleess::

        paste(1:12) # same as as.character(..)
        paste("A", 1:6, sep = "")
        paste("Today is", date())

