Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

Re: st: String task

From   Nick cox <>
To   "" <>
Subject   Re: st: String task
Date   Fri, 1 Apr 2011 17:29:55 +0100

Note also the -destring- option.


On 1 Apr 2011, at 16:56, Austin Nichols <> wrote:

Daniel Marcelino <>:

input str8 day
split day, p(/)

On Fri, Apr 1, 2011 at 11:51 AM, Daniel Marcelino < > wrote:
Hello all,

I have I task with string that is split a string into two vars.
So every character before first "/" slash if is there, must be copied
to var1. Also, everything after  "/" slash or if there is no "/"
everything in the cell must be placed into var2.
How can I do it?
*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index