Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Martin Weiss" <martin.weiss1@gmx.de> |
To | <statalist@hsphsun2.harvard.edu> |
Subject | st: RE: how to handle this type of strings: "text (i.e it containes only one ") |
Date | Sat, 20 Feb 2010 19:19:14 +0100 |
<> You need the double quotes described in [U], 18.3.5. Your reference may differ slightly since you say you are a Stata 10 user. ******* clear* input str15 mystrvar `""text"' "other string" end list, noo drop if mystrvar==`""text"' list, noo ******* HTH Martin -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Adrian Gonzalez Sent: Samstag, 20. Februar 2010 17:18 To: statalist@hsphsun2.harvard.edu Subject: st: how to handle this type of strings: "text (i.e it containes only one ") Dear members I have a string VARIABLE that contains the following value "text (the " is part of the string value). and I want to delete those rows , but when i write delete if VARIABLE=""text" I get the following error too few quotes r(132); i am using Stata 10.1 Thanks for your help * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/ * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/