CITAN (version 2011.08-1)

sqlTrim: Trim white-spaces on both sides of character strings

Description

Trims white-spaces on both sides of a string.

Usage

sqlTrim(str, useBytes=FALSE)

Arguments

str
a character vector where matches are sought, or an object which can be coerced by as.character to a character vector.
useBytes
logical. If TRUE the matching is done byte-by-byte rather than character-by-character. See man page for gsub.

Value

  • See 'Value' for gsub.

Details

This function uses gsub.

See Also

gsub, sqlEscape, sqlEscapeTrim