[R] reshape - reshape2 problem

Luciano Selzer luciano.selzer at gmail.com
Thu Nov 10 13:14:42 CET 2011


Sorry, it's reshape2:::melt.data.frame()
Luciano



2011/11/10 Johannes Radinger <JRadinger at gmx.at>:
> Hi,
>
> I tried that before but then I get:
>
> Error: 'melt.data.frame' is not an exported object from 'namespace:reshape2'
>
> Strange that this is working in your case but not in my case.
>
> Some addtional info about my package versions:
> R 2.14.0
> reshape 0.8.4
> reshape 1.1
> ggplot2 0.8.9
>
>
> cheers
> /j
>
> -------- Original-Nachricht --------
>> Datum: Thu, 10 Nov 2011 08:51:55 -0300
>> Von: Luciano Selzer <luciano.selzer at gmail.com>
>> An: Johannes Radinger <JRadinger at gmx.at>
>> CC: Brandon Hurr <brandon.hurr at gmail.com>, r-help at r-project.org, ggplot2 at googlegroups.com
>> Betreff: Re: reshape - reshape2 problem
>
>> I had the same issue. The problem is that melt will call a method. The
>> method will dispach melt.data.frame from reshape package, thus
>> ignoring reshape2. The solution is to call specificly
>> reshape2::melt.data.frame()
>>
>> HTH
>> Luciano
>>
>>
>>
>> 2011/11/10 Johannes Radinger <JRadinger at gmx.at>:
>> >
>> > Am 10.11.2011 um 09:54 schrieb Brandon Hurr:
>> >
>> > Is the value.name ignored as well?
>> > Looks like it might have been left out of the function call?
>> >>reshape2::melt
>> > function (data, ..., na.rm = FALSE, value.name = "value")
>> > {
>> >     UseMethod("melt", data)
>> > }
>> > <environment: namespace:reshape2>
>> > Brandon
>> >
>> > No doesn't work either...value.name is ignored as well when
>> > I call reshape2::melt()
>> > /Johannes
>> >
>> >
>> > On Thu, Nov 10, 2011 at 08:45, Johannes Radinger <JRadinger at gmx.at>
>> wrote:
>> >>
>> >> > Have you tried loading reshape2 after ggplot2 and all it's
>> requirements?
>> >> > Usually whatever is loaded last masks earlier loaded packages with
>> functions
>> >> > of the same name so if reshape2 is last then it should mask
>> reshape(1) and
>> >> > all of it's similarly named functions.
>> >> >
>> >> > Brandon
>> >>
>> >> Yes, reshape2 is loaded after reshape... but reshape masks reshape2,
>> maybe
>> >> because reshape is needed by ggplot2? So it is really strange...
>> >>
>> >> /johannes
>> >>
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the ggplot2
>> mailing
>> > list.
>> > Please provide a reproducible example: http://gist.github.com/270442
>> >
>> > To post: email ggplot2 at googlegroups.com
>> > To unsubscribe: email ggplot2+unsubscribe at googlegroups.com
>> > More options: http://groups.google.com/group/ggplot2
>> >
>> > --
>> > You received this message because you are subscribed to the ggplot2
>> mailing
>> > list.
>> > Please provide a reproducible example: http://gist.github.com/270442
>> >
>> > To post: email ggplot2 at googlegroups.com
>> > To unsubscribe: email ggplot2+unsubscribe at googlegroups.com
>> > More options: http://groups.google.com/group/ggplot2
>> >
>
> --
> NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!
> Jetzt informieren: http://www.gmx.net/de/go/freephone
>



More information about the R-help mailing list