str_trim: Remove whitespace

View source: R/str_trim.R

str_trimR Documentation

Remove whitespace

Description

Dependency-free drop-in alternative for stringr::str_trim().

Usage

str_trim(string, side = c("both", "left", "right"))

Arguments

string

Input vector. Either a character vector, or something coercible to one.

side

Side on which to remove whitespace: "left", "right", or "both", the default.

Value

A character vector the same length as string.

Source

Adapted from the stringr package.


stringstatic documentation built on July 26, 2023, 5:32 p.m.