powered by
Trims any marginal whitespace from a vector of character string(s).
trim_marginal_whitespace(x)
A vector of character string(s) with any leading or trailing whitespace removed.
A character string
Graeme T. Lloyd graemetlloyd@gmail.com
Trims any marginal whitespace (spaces or tabs) from a vector of character string(s).
# Example string: x <- " \td s f\t s " # Trim only marginal whitespace: trim_marginal_whitespace(x)
Run the code above in your browser using DataLab