text_trim: trim spaces

Description Usage Arguments

View source: R/text_trim.R

Description

trim spaces

trim spaces default

trim spaces list

trim spaces numeric

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
text_trim(string, side = c("both", "left", "right"), pattern = " ", ...)

## Default S3 method:
text_trim(string, side = c("both", "left", "right"), pattern = " ", ...)

## S3 method for class 'list'
text_trim(string, side = c("both", "left", "right"), pattern = " ", ...)

## S3 method for class 'numeric'
text_trim(string, side = c("both", "left", "right"), pattern = " ", ...)

Arguments

string

text to be trimmed

side

defaults to both might also be left, right, both or b, r, l to express where to trim pattern away

pattern

regex to look for

...

further arguments passed through to text_replace()


stringb documentation built on Jan. 26, 2021, 1:07 a.m.

Related to text_trim in stringb...