Transcription of destring — Convert string variables to numeric variables ...
{{id}} {{{paragraph}}}
Convert string variables to numeric variables and vice versaSyntaxMenuDescriptionOptions for destringOptions for tostringRemarks and examplesAcknowledgmentReferencesAlso seeSyntaxConvert string variables to numeric variablesdestring[varlist],{generate(new varlist)|replace}[destringoptions]Conver t numeric variables to string variablestostringvarlist,{generate(newva rlist)|replace}[tostringoptions] destring optionsDescription generate(newvarlist)generatenewvar1,..,n ewvarkfor each variable invarlist replacereplace string variables invarlistwith numeric variablesignore("chars")remove specified nonnumeric charactersforceconvert nonnumeric strings to missing valuesfloatgenerate numeric variables as typefloatpercentconvert percent variables to fractional formdpcommaconvert variables with commas as decimals to period-decimal format Eithergenerate(newvarlist)orreplaceis generate(newvarlist)generatenewvar1,..,n ewvarkfor each variable invarlist replacereplace numeric variables invarlistwith string variablesforceforce conversion ignoring information lossformat(format) Convert using specified formatusedisplayformatconvert using display format Eithergenerate(newvarlist)orreplaceis >Create or change data>Other variable -transformation commands> Convert variables from string tonumerictostringData>Create or change data>Other variable -transformation commands> Convert variables from numeric tostring12 destring C
with ignore(), be treated as indicating missing numeric values. float specifies that any new numeric variables be created initially as type float. The default is type double; see[D] data types. destring attempts automatically to compress each new numeric variable after creation. percent removes any percent signs found in the values of a ...
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}