Posted by
Oliver, Richard on
Jun 08, 2009; 4:45pm
URL: http://spssx-discussion.165.s1.nabble.com/Paired-test-for-3-variables-tp1089169p1089175.html
compute varname=replace(varname, "#", "").
compute varname=replace(varname, " ", "").
-----Original Message-----
From: SPSSX(r) Discussion [mailto:
[hidden email]] On Behalf Of Ergul, Emel A.
Sent: Monday, June 08, 2009 10:50 AM
To:
[hidden email]
Subject: How to get rid of a character/sign in string
Hi to all:
As a newbie SPSS syntact-er, I apologize if my message is annoyingly simple.
Here is the thing I need help:
I have 7 digit string variable (7 digit number) with random "#" sign in it. In
variable there are few cases where space has been used instead of "#". I want to
get rid of both.
Q1. Does the position of sign and space matter?
Q2. Do you have any code that I can try to adjust my case?
Many thanks to all!!
emel
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD