由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - (urgent) ask for help
相关主题
急问,在线等:SAS adv certification Question about SELECT v.s IF/THEN ELSEsas一问
sas question慕名而来,请教一个 SAS date question
help in sasSAS data merge求助
R能处理多大的数据集?Joint test for difference in a groups of variables between
[合集] help please! A sas question问个sas 的问题
Import excel file to sas (the first 8 or more observationsSAS format 的问题
any simple way to only list the character variable in thehow to use SAS to do cluster analysis with both characteri
In which situation, SELECT is more efficient than IF/THENhelp how to convert char to numeric variable?
相关话题的讨论汇总
话题: patientid话题: 45551话题: 7666668话题: 567778991话题: 900000001
进入Statistics版参与讨论
1 (共1页)
e*******e
发帖数: 75
1
Hi,
I have a numeric variable patientID as following:
PatientID
123
231
4567
7666668
900000001
567778991
45551
456
How can I convert the numeric variable to a character variable and make it
looks like as follows(all the blanks from the right side needs to be removed
)?
PatientID
123
231
4567
7666668
900000001
567778991
45551
456
Many thanks!
d******9
发帖数: 404
2
try do it this way:
NewID= put(PatientID, 20.);
I think a length of 20 is long enough for u.
1 (共1页)
进入Statistics版参与讨论
相关主题
help how to convert char to numeric variable?[合集] help please! A sas question
大牛帮忙:批处理读入多个文件!!Import excel file to sas (the first 8 or more observations
how to use first.var in sas macro?any simple way to only list the character variable in the
how to combine characters and numric variable in "where" clause by SAS?urgent!In which situation, SELECT is more efficient than IF/THEN
急问,在线等:SAS adv certification Question about SELECT v.s IF/THEN ELSEsas一问
sas question慕名而来,请教一个 SAS date question
help in sasSAS data merge求助
R能处理多大的数据集?Joint test for difference in a groups of variables between
相关话题的讨论汇总
话题: patientid话题: 45551话题: 7666668话题: 567778991话题: 900000001