Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Data Extraction from Cells


From   Abhimanyu Arora <[email protected]>
To   [email protected]
Subject   Re: st: Data Extraction from Cells
Date   Mon, 12 Jul 2010 15:58:43 +0200

See -substr-(,,)

On Mon, Jul 12, 2010 at 3:47 PM, Samuel Finkelstein
<[email protected]> wrote:
> Dear All,
>
> I apologize for what is most likely an elementary problem, but I
> cannot seem to find a solution.  I am currently using a dataset that
> includes multiple indicators within the same cell.  For instance, if a
> firm is publicly traded, was incorporated in the last five years, and
> is in the utilities industry, a single cell may contain information
> such as 1A3B3N, with each number/letter combination denoting one of
> these characteristics (with no spaces in between the various
> combinations).  Is there a way that I can extract each of the
> number/letter cominations into different (newly created) columns, such
> that I have one column that has 1A, one column with 3B, and one with
> 3N?  For my purposes, the columns can contain different
> codes/identifiers.  For example, the first column could have 1A for
> Company A and 2F for Company B.  I am only trying to use these codes
> to identify firms with two or three specific characteristics.
>
> Again, I apologize for what may be a very simple question, but if
> anyone has any ideas I would greatly appreciate it.
>
> Respectfully,
>
> Samuel
> *
> *   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index