[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Re: generate a string variable holding a double quote?
You can also look up " in an ASCII table and then use
. gen quote = char(34)
--- Seb Buechte <firstname.lastname@example.org> wrote:
> Yes it is:
> gen quote=`"""'
> should work.
> unfortunately I do not know the english words for the leading and
> ending character in that sequence meaning ` and ' . Using these
> solves the issue.
> On 5/19/05, Sherman, Richard <RSherman@fsw.leidenuniv.nl> wrote:
> > Dear Statalist,
> > Is it possible to create a string variable containing only the
> > character " ? Stata 8 won't let me do so with the command
> > gen quote = """
> > or in the data editor.
> > This would be convenient for, e.g, labeling variables with the
> > values of another variable.
> > Thanks,
> > Richard Sherman
> > Department of Political Science, Leiden University
> > Leiden, Netherlands
> > http://homepage.mac.com/richard.sherman/
Get on-the-go sports scores, stock quotes, news and more. Check it out!
* For searches and help try: