Transcription of split — Split string variables into parts - Stata
{{id}} {{{paragraph}}}
Split string variables into partsSyntaxMenuDescriptionOptionsRemarks and examplesStored resultsAcknowledgmentsAlso seeSyntaxsplitstrvar[if][in][,options]op tionsDescriptionMaingenerate(stub)begin new variable names withstub; default isstrvarparse(parsestrings)parse on specified strings; default is to parse on spaceslimit(#)create a maximum of#new variablesnotrimdo not trim leading or trailing spaces of original variableDestringdestringapplydestringto new string variables , replacing initial stringvariables with numeric variables where possibleignore("chars")remove specified nonnumeric charactersforceconvert nonnumeric strings to missing valuesfloatgenerate numeric variables as typefloatpercentconvert percent variables to fractional formMenuData>Create or change data>Other variable -transform
split is used to split a string variable into two or more component parts, for example, “words”. You might need to correct a mistake, or the string variable might be a genuine composite that you ... on the fly can be forced as part of macro substitution. Finally, suppose that a string variable contains substrings bound in parentheses, such ...
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}