[R] reshape - reshape2 problem

Luciano Selzer luciano.selzer at gmail.com
Thu Nov 10 12:51:55 CET 2011


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
>



More information about the R-help mailing list