removeSlash: Remove a trailing slash from a character string

View source: R/functions.r

removeSlashR Documentation

Remove a trailing slash from a character string

Description

Removes a trailing slash (/) from x

Usage

removeSlash(x)

Arguments

x

character string

Value

character string without a trailing slash

Author(s)

Simon Frey

See Also

addSlash for adding a trailing slash; changeSlash for substituting a slah with a double backslash

Examples

removeSlash("C:/Temp/")
removeSlash("C:/Temp")

freysimon/TigeR documentation built on Feb. 3, 2024, 2:32 a.m.