str_squish {stringr} R Documentation

Remove whitespace

Description


strtrim() removes whitespace from start and end of string; strsquish() removes whitespace at
the start and end, and replaces all internal whitespace with a single space.

Usage

str_squish(string);

Arguments

string

Input vector. Either a character vector, Or something coercible To one.

Details

Authors

SMRUCC genomics Institute

Value

A character vector the same length as string.

clr value class

Examples


[Package stringr version 2.33.856.6961 Index]