Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Can you search within a dataset for a particular character?


From   David Jacobs <[email protected]>
To   [email protected]
Subject   Re: st: Can you search within a dataset for a particular character?
Date   Wed, 07 Mar 2007 15:00:22 -0500

Try the command "lookfor". The now undocumented command "ds, has(varl *weight* *wieght") if I recall correctly will find an instance of either. Information about ds can be found by typing help in the command line.

Dave Jacobs

At 02:44 PM 3/7/2007, you wrote:

I have a dataset of names stored as string variables. Is there any way to search the dataset for all data containing a particular character, a hyphen for example? Also, is there any way to search the same dataset for all names containing a space (as in last names with a space between them ex. von cannon)? Thank you!
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index