由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - How to deal with single quotation mark?
相关主题
title statement[合集] Variable selection with 2000 + variables.
A SAS problemone statistic interview question
in =option的一道题variable and covariate 的区别?
再问几个R的问题。急问,在线等:SAS adv certification Question about SELECT v.s IF/THEN ELSE
[合集] How to specify a variable as missing请教一个关于PCA的问题
sas question一个关于macro的问题,多谢。
复杂分类变量recoding?请教一个很白痴的回归分析的问题
How can I loop through a list of strings as variables in a[合集] 电话面试完了,肯定没戏,大家帮我看看题目,就算学习吧
相关话题的讨论汇总
话题: he话题: quotation话题: single话题: mark话题: string
进入Statistics版参与讨论
1 (共1页)
r********e
发帖数: 1686
1
When I need to find the observation with the string 'He's not' , I used
where Variable contains 'He's not'
but it's not working because of the single quotation mark within the string.
I also tried " He's not", it's still incorrect.
How am I supposed to deal with it?
Thanks!!
N********a
发帖数: 248
2
%quote或者%str
%let string=%quote(he's not)
s******y
发帖数: 352
3
as simple as double the quotes:
where Variable contains 'He''s not' ;

string.

【在 r********e 的大作中提到】
: When I need to find the observation with the string 'He's not' , I used
: where Variable contains 'He's not'
: but it's not working because of the single quotation mark within the string.
: I also tried " He's not", it's still incorrect.
: How am I supposed to deal with it?
: Thanks!!

1 (共1页)
进入Statistics版参与讨论
相关主题
[合集] 电话面试完了,肯定没戏,大家帮我看看题目,就算学习吧[合集] How to specify a variable as missing
SAS code help!! thankssas question
一道SAS面试题,关于dummy variable复杂分类变量recoding?
请教建模中ordinal var的处理方法How can I loop through a list of strings as variables in a
title statement[合集] Variable selection with 2000 + variables.
A SAS problemone statistic interview question
in =option的一道题variable and covariate 的区别?
再问几个R的问题。急问,在线等:SAS adv certification Question about SELECT v.s IF/THEN ELSE
相关话题的讨论汇总
话题: he话题: quotation话题: single话题: mark话题: string