str_rm_blank_space: Remove and replace excess white space from strings.

Description Usage Arguments Value Examples

View source: R/text.table.R

Description

Remove and replace excess white space from strings.

Usage

1
str_rm_blank_space(x, replacement = " ")

Arguments

x

A vector or string.

replacement,

A string to replace the blank space with, defaults to " ", which replaces excess space with a single space.

Value

x, with extra white space removed/replaced.

Examples

1
str_rm_blank_space(c("this     is   a test.  ", "    will it    work? "))

textTools documentation built on Feb. 5, 2021, 5:07 p.m.