由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - how to delete rows by string value?
相关主题
R question, calculate mean over some rowsR-Question about attach
delete duplicate rows in EXCEL?[合集] 我是否应该将Insignificant Interaction还放在Model里?
job opportunity问一个用sas解决epidemiology的问题
Why my post of opening was deleted?SAS format 的问题
谁把人家老婆的帖子也删了?在SAS里怎么产生two way interaction term?
[合集] Re: 一个数据处理的问题,小女子请教牛人指教.问个sas问题 proc catmod
请教一道作业题目proc logistic遇到missing value怎么处理
R table问题弱问求教:如何在R中为一个microarray data 画一个heatmap?
相关话题的讨论汇总
话题: cliff话题: delete话题: county话题: string话题: rows
进入Statistics版参与讨论
1 (共1页)
b******o
发帖数: 545
1
for instance I have a data file as
name gender age income county
jason M 26 40K MORRIS
ADAM M 21 100K CLIFF
JORGE M 30 20K WARREN
ERIKA F 21 43K CLIFF
if I want to delete all the cliff county results,
the " if county = 'cliff' then delete;" doesn't work,
even after I define a string ='cliff', then "if county=string then
delete", still not working.
any suggestion?
Thank you!
D******n
发帖数: 2836
2
case

【在 b******o 的大作中提到】
: for instance I have a data file as
: name gender age income county
: jason M 26 40K MORRIS
: ADAM M 21 100K CLIFF
: JORGE M 30 20K WARREN
: ERIKA F 21 43K CLIFF
: if I want to delete all the cliff county results,
: the " if county = 'cliff' then delete;" doesn't work,
: even after I define a string ='cliff', then "if county=string then
: delete", still not working.

b******o
发帖数: 545
3
detail please. I am sure it wasn't about the up/low case problem

【在 D******n 的大作中提到】
: case
b*******g
发帖数: 513
4
You are correct, this program works:
data one;
input name $ gender $ age income $ county $;
datalines;
name gender age income county
jason M 26 40K MORRIS
ADAM M 21 100K CLIFF
JORGE M 30 20K WARREN
ERIKA F 21 43K CLIFF
;run;
data two;
set one;
if county="CLIFF" then delete;
run;
proc print data=two;
quit;

【在 D******n 的大作中提到】
: case
b******o
发帖数: 545
5
thank you!

【在 b*******g 的大作中提到】
: You are correct, this program works:
: data one;
: input name $ gender $ age income $ county $;
: datalines;
: name gender age income county
: jason M 26 40K MORRIS
: ADAM M 21 100K CLIFF
: JORGE M 30 20K WARREN
: ERIKA F 21 43K CLIFF
: ;run;

1 (共1页)
进入Statistics版参与讨论
相关主题
求教:如何在R中为一个microarray data 画一个heatmap?谁把人家老婆的帖子也删了?
在 R 里面如何循环调用变量名[合集] Re: 一个数据处理的问题,小女子请教牛人指教.
请问哪里有DeGroot的Solution Manual请教一道作业题目
问个SAS入门级的问题。。多谢。。R table问题弱问
R question, calculate mean over some rowsR-Question about attach
delete duplicate rows in EXCEL?[合集] 我是否应该将Insignificant Interaction还放在Model里?
job opportunity问一个用sas解决epidemiology的问题
Why my post of opening was deleted?SAS format 的问题
相关话题的讨论汇总
话题: cliff话题: delete话题: county话题: string话题: rows