From Waclaw.Marcin.Kusnierczyk at idi.ntnu.no  Sat May 30 00:28:35 2009
From: Waclaw.Marcin.Kusnierczyk at idi.ntnu.no (Wacek Kusnierczyk)
Date: Sat, 30 May 2009 00:28:35 +0200
Subject: [Rd] as.numeric(levels(factor(x))) may be a decreasing sequence
In-Reply-To: <3f1d2410905291448y271fa484te82b8dbaa547017f@mail.gmail.com>
References: <20090523074454.GA17112@cs.cas.cz>	<18973.42970.826686.173830@cmath-5.math.ethz.ch>	<4A1DC057.80401@idi.ntnu.no>	<18975.59582.885300.549159@lynne.math.ethz.ch>	<4A203D67.8000007@idi.ntnu.no>
	<3f1d2410905291448y271fa484te82b8dbaa547017f@mail.gmail.com>
Message-ID: <4A206193.8070807@idi.ntnu.no>

Martin Maechler wrote:
> Hi Waclav (and other interested parties),
>
> I have committed my working version of src/main/coerce.c
> so you can prepare your patch against that.
>   

Hi Martin,

One quick reaction (which does not resolve my original complaint):  you
can have p non-const, and cast s to char* on the first occasion its
value is assigned to p, thus being able to copy from p to replace
without repetitive casts.  make check-ed patch atatched.

vQ
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dropTrailing.patch
Type: text/x-diff
Size: 593 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20090530/f6b8cc02/attachment.bin>


[Rd] as.numeric(levels(factor(x))) may be a decreasing sequence
Wacek Kusnierczyk