tidy_string: Remove redundant white spaces and new lines

View source: R/db_checking.R

tidy_stringR Documentation

Remove redundant white spaces and new lines

Description

Remove redundant white spaces and new lines

Usage

tidy_string(s)

Arguments

s

A string.

Value

The string, with new lines and excess white spaces removed. Excess white spaces refer to both trailing and leading as well as multiple white spaces next to each other.

Examples

magutils:::tidy_string("  some string     with  many   white spaces. ")

f-hafner/magutils documentation built on Sept. 20, 2023, 5:05 a.m.