[R] reshape bug?

hadley wickham h.wickham at gmail.com
Tue Nov 4 15:52:00 CET 2008


I've figured out the problem and just pushed a new version up to CRAN.
 It will (hopefully) be available from mirrors in a couple of days
time.

Hadley

On Tue, Nov 4, 2008 at 8:29 AM, stephen sefick <ssefick at gmail.com> wrote:
> no problem- keep up the good work.
>
> On Tue, Nov 4, 2008 at 9:25 AM, hadley wickham <h.wickham at gmail.com> wrote:
>> Hi Stephen,
>>
>> Thanks for the bug report (and apologies for the delay getting back to
>> you).  I'm working on a fix today and will hopefully release a new
>> version in the very near future.
>>
>> Hadley
>>
>> On Fri, Oct 31, 2008 at 12:51 PM, stephen sefick <ssefick at gmail.com> wrote:
>>> Hadley et al.,
>>> I was using the cast function to reshape some data (aggregate a melted
>>> data frame) and I did not put in the fill and for the most part the
>>> values that came out were fine, but there were value great than an
>>> order of magnitude from the actual value.  When I put in the fill
>>> argument everything is okay.  I don't provide a reproducible example
>>> because the data set is to large to post to the list, but if you would
>>> like to see it then I can provide it.
>>>
>>> #this works
>>> cast(x, Date+RiverMile+location~Order, sum, fill=0)
>>>
>>> #this doesn't
>>> cast(x, Date+RiverMile+location~Order, sum)
>>>
>>>
>>>
>>> R version 2.8.0 (2008-10-20)
>>> i386-pc-mingw32
>>>
>>> locale:
>>> LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
>>> States.1252;LC_MONETARY=English_United
>>> States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
>>>
>>> attached base packages:
>>> [1] splines   grid      stats     graphics  grDevices utils
>>> datasets  methods   base
>>>
>>> other attached packages:
>>> [1] ggplot2_0.7        MASS_7.2-44        RColorBrewer_1.0-2
>>> proto_0.3-8        reshape_0.8.1      plyr_0.1.1
>>>
>>>
>>> thanks
>>>
>>> --
>>> Stephen Sefick
>>> Research Scientist
>>> Southeastern Natural Sciences Academy
>>>
>>> Let's not spend our time and resources thinking about things that are
>>> so little or so large that all they really do for us is puff us up and
>>> make us feel like gods.  We are mammals, and have not exhausted the
>>> annoying little problems of being mammals.
>>>
>>>                                                                -K. Mullis
>>>
>>
>>
>>
>> --
>> http://had.co.nz/
>>
>
>
>
> --
> Stephen Sefick
> Research Scientist
> Southeastern Natural Sciences Academy
>
> Let's not spend our time and resources thinking about things that are
> so little or so large that all they really do for us is puff us up and
> make us feel like gods.  We are mammals, and have not exhausted the
> annoying little problems of being mammals.
>
>                                                                -K. Mullis
>



-- 
http://had.co.nz/



More information about the R-help mailing list