Maybe just copy the correct version of the function into .GlobalEnv so that
it is first on the search path:

reorder.factor=stats:::reorder.factor


Kevin Wright

On Tue, Dec 8, 2009 at 3:43 AM, espesser <robert.espesser@lpl-aix.fr> wrote:

> Dear all
>
> It seems there is a name conflict between the reorder.factor() function
> from the package "gdata" and the reorder.factor() from the package "stats"
> .
> After loading the  library "gdata", dotplot(ranef( model_object.lmer)  )
> - which seems using internally  by default reorder.factor()  from the
> package "stats"  -
> does not plot the random terms sorted any more .
> The regular behavior can be recovered with:
> detach("package:gdata",unload=T)
> but is there an easier or a more convenient way ?
>
> Thank you for your help
>
> R. Espesser
> CNRS - Université de Provence
> Laboratoire Parole & Langage
> 5 avenue Pasteur
> BP 80975
> 13604 Aix en Provence Cedex 1 (France)
>
> web : www.lpl-aix.fr/~espesser <http://www.lpl-aix.fr/%7Eespesser>
>
>
> _______________________________________________
> R-sig-mixed-models@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
>



-- 
Kevin Wright

	[[alternative HTML version deleted]]


