ReplaceRepeatedWhitespaces: ReplaceRepeatedWhitespaces

View source: R/Stringendo.R

ReplaceRepeatedWhitespacesR Documentation

ReplaceRepeatedWhitespaces

Description

ReplaceRepeatedWhitespaces replaces multiple consecutive white spaces with a single one.

Usage

ReplaceRepeatedWhitespaces(string, replacement = " ")

Arguments

string

The string (file path) potentially having repeated slashes.

replacement

The string to replace the white spaces with. Default: ”.

Value

A string with repeated slashes replaced by a single slash.

Examples

ReplaceRepeatedWhitespaces(string = "path   to    folder")

vertesy/Stringendo documentation built on Nov. 10, 2024, 4:35 a.m.