string_redund_ws: Remove redundant whitespaces from a string.

Description Usage Arguments Value Examples

View source: R/string_redund_ws.R

Description

Replace consecutive whitespaces by a single one, and trim leading and trailing whitespace.

Usage

1

Arguments

string

A character vector.

Value

string with redundant whitespaces removed.

Examples

1
string_redund_ws(" This  string   will be shorter.   ")

thorepet/thoremisc documentation built on Oct. 8, 2021, 7:48 a.m.