[ top | up ]

Concatenate Strings

Syntax

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

Description

paste converts its arguments to character strings, and concatenates them (separating them by the string given by sep). 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 collapse.

The concatenated value is returned as the value of paste.

See Also

substr, nchar, strsplit