Command Reference : Function Reference : Function Reference: L
  
 
@ltrim
Trim left whitespace of a string.
Syntax: @ltrim(str)
tr: string, alpha, svector
Return: string, alpha, svector
Returns the string str with spaces trimmed from the left.
Examples
@ltrim(" I doubt that I did it.  ")
returns “I doubt that I did it.  ”. Note that the spaces on the right remain.
If ALPHA1 is an alpha series,
alpha alphaltrim = @ltrim(alpha1)
returns the left-trimmed strings in ALPHA1 for each observation in the workfile sample.
If SVEC1 is an string vector,
svector sveclen = @ltrim(svec1)
returns a string vector containing the left-trimmed elements of SVEC1.
Cross-references
See also @rtrim and @trim.