concat.String: Concatenates two strings

Description Usage Arguments Value Author(s) Examples

Description

Concatenates two strings into a third string.

Usage

1
2
## S3 method for class 'String'
concat(this, s, ...)

Arguments

s

The string to be concatenated to this string.

Value

Returns the concatenated string.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

Examples

1
2
3
4
5
  s1 <- String("Hello")
  s2 <- String("world!")
  s3 <- concat(s1, " ")         # "Hello "
  s4 <- concat(s3, s2)          # "Hello world!"
  concat("Hello", " world!")    # "Hello world!"

HenrikBengtsson/R.lang documentation built on May 8, 2019, 7:50 p.m.