str_trim: Trim leading spaces, trailing spaces or both.

View source: R/string.R

str_trimR Documentation

Trim leading spaces, trailing spaces or both.

Description

Trim leading spaces, trailing spaces or both.

Usage

str_trim(x, where = c("leading", "trailing", "both")[3], replace_with = "")

Arguments

x

character vector

where

character of either 'leading', 'trailing', 'both' (default)

replace_with

character, by default ""

Value

trimmed character vector of same length as the input


BigelowLab/rscripting documentation built on Oct. 24, 2022, 5:31 p.m.