flip: Flips slashes orientation

Description Usage Arguments Details Value Examples

View source: R/flip.slash.R

Description

Method reverse orientation of slashes in the string

Usage

1

Arguments

text

character where slashes orientation will be flipped

Details

If method find forward or backward slash in the text then it will reverse its orientation. In the case there are no slashes in the text, unmodified text is returned.

Value

Method returns string with reversed orientation of slashes.

Examples

1
2
    flip('/usr\\bin/') == flip(flip(flip('/usr\\bin/')))
    flip('no change') == 'no change'

sfr/RStudio-Addin-Snippets documentation built on May 29, 2019, 8:01 p.m.