addSlash: Add a slash to an existing character string

View source: R/functions.r

addSlashR Documentation

Add a slash to an existing character string

Description

Adds a slash (/) to x, if x does not already end with one.

Usage

addSlash(x)

Arguments

x

character string

Value

character string

Author(s)

Simon Frey

See Also

removeSlash for removing a trailing slash; changeSlash for substituting a slah with a double backslash

Examples

addSlash("C:/TEMP")
addSlash("C:/TEMP/")

freysimon/TigeR documentation built on April 18, 2024, 4:57 p.m.