strip_spaces {confidence}R Documentation

Remove Redundant Spaces

Description

This function removes redundant spaces from character vectors

Usage

strip_spaces(x)

Arguments

x

character vector

Value

character vector without trailing or multiple spaces

Examples

stopifnot(confidence:::strip_spaces(" Hello  World  ") == "Hello World")

[Package confidence version 1.1-2 Index]