Syntax Description - Stata
( ) Extract substringSyntaxDescriptionConformability DiagnosticsAlso seeSyntaxstring matrixsubstr(string matrix s,real matrix b,real matrix l)string matrixsubstr(string matrix s,real matrix b)Descriptionsubstr(s,b,l)returns the substring ofsstarting at positionband continuing for a length ofl, the starting position; the first character of the string isb= >0 is interpreted as distance from the start of the string;b=2 means starting at thesecond <0 is interpreted as distance from the end of string;b= 1 means starting at the lastcharacter;b= 2 means starting at the second from the last the length;l=2 means for two <0 is treated the same asl=0: no characters are.
2substr()— Extract substring Diagnostics In substr(s, b, l) and substr(s, b), if b describes a position before the beginning of the string or after the end, "" is returned.
Download Syntax Description - Stata
Information
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document: