Here is an example.
Code:
clear input str30 y1 y201213119349300311 end replace y1 = subinstr(y1,"y","",.) destring y1, g(y1_real) format y1_real %30.0g
Thanks in advance.
Specialized on Data processing, Data management Implementation plan, Data Collection tools - electronic and paper base, Data cleaning specifications, Data extraction, Data transformation, Data load, Analytical Datasets, and Data analysis. BJ Data Tech Solutions teaches on design and developing Electronic Data Collection Tools using CSPro, and STATA commands for data manipulation. Setting up Data Management systems using modern data technologies such as Relational Databases, C#, PHP and Android.
clear input str30 y1 y201213119349300311 end replace y1 = subinstr(y1,"y","",.) destring y1, g(y1_real) format y1_real %30.0g
0 Response to convert long string to numeric (not exp)
Post a Comment