appendString: Append a string to another, using a separator, without...

Description Usage Arguments Details

View source: R/appendString.R

Description

Function to append one string ('add') to another ('orig'), using a separator, without appending a duplicate.

Usage

1
appendString(orig, app, sep = "\n")

Arguments

orig

- original string to append to

app

- string to append

sep

- string used to separate the original and appended strings. (default is newline)

Details

The following examples apply (taking sep='/'):
1: orig = ”, app = 'app', result = 'app'
2: orig = 'orig', app = 'app', result = 'orig/app'
3: orig = 'orig', app = 'orig', result = 'orig'


wStockhausen/rTCSAM2015 documentation built on May 3, 2019, 7:14 p.m.