Skip to contents

Trim whitespace off a string

Usage

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

Arguments

string

Character vector of strings.

side

Side on which to remove whitespace (left, right or both).