condense_spaces: Condense Spaces

condense_spacesR Documentation

Condense Spaces

Description

Trim and remove double spaces from the input strings.

Usage

condense_spaces(x)

Arguments

x

A vector

Details

Beginning, double and ending spaces are also removed from the strings.

Value

A vector with extra spaces removed

Author(s)

Leo Lahti leo.lahti@iki.fi

References

See citation("bibliographica")

Examples

x2 <- condense_spaces(" a  b cd ") # "a b cd"

COMHIS/bibliographica documentation built on April 11, 2022, 3:40 p.m.