reducews: Reduce consecutive, internal whitespace characters (not...

View source: R/reducews.R

reducewsR Documentation

Reduce consecutive, internal whitespace characters (not leading or trailing) to a single whitespace character

Description

Reduce consecutive, internal whitespace characters (not leading or trailing) to a single whitespace character

Usage

reducews(x)

Arguments

x

A chacter vector

Value

modified vector where serial whitespace characters have been replaced with a single whitespace character (the first in the series)

See Also

[stringr:::str_squish()] which does essentially the same thing

Examples

reducews("CCN      51")

stackcon/rngt documentation built on June 17, 2022, 5:29 p.m.