trim_marginal_whitespace {Claddis} | R Documentation |
Trims marginal whitespace
Description
Trims any marginal whitespace from a vector of character string(s).
Usage
trim_marginal_whitespace(x)
Arguments
x |
A character string |
Details
Trims any marginal whitespace (spaces or tabs) from a vector of character string(s).
Value
A vector of character string(s) with any leading or trailing whitespace removed.
Author(s)
Graeme T. Lloyd graemetlloyd@gmail.com
Examples
# Example string:
x <- " \td s f\t s "
# Trim only marginal whitespace:
trim_marginal_whitespace(x)
[Package Claddis version 0.6.3 Index]