[R] Error: could not find function "hier.part"

R. Michael Weylandt michael.weylandt at gmail.com
Wed Feb 29 04:14:20 CET 2012


It would seem that hier.part is not in the gtools package....do you
have some reference that suggests otherwise? I don't know the
function, but I might suggest you check the hier.part package (also on
CRAN).

Michael

On Tue, Feb 28, 2012 at 4:27 PM, haiyan <tucsonaugust at gmail.com> wrote:
> Error: could not find function "hier.part"
> things I have tried:
>
> 1. reinstall R (lastest version,  on windows XP)
> 2. install package "gtools"
> 3. include:
> library(gtools)
> require(gtools)
> 4. how I call this function:
> hier.part(c$Y, xdata, fam = "gaussian", gof = "Rsqu")
>
> 5.when I try to check what's in the package "gtools", I get (hier.part is
> not included):
>
>> gtools:: <TAB>
> gtools::addLast             gtools::ask                 gtools::assert
> gtools::binsearch           gtools::capture
> gtools::checkRVersion
> gtools::combinations        gtools::ddirichlet          gtools::defmacro
> gtools::even                gtools::foldchange
> gtools::foldchange2logratio
> gtools::inv.logit           gtools::invalid             gtools::keywords
> gtools::logit               gtools::logratio2foldchange gtools::mixedorder
> gtools::mixedsort           gtools::odd                 gtools::permutations
> gtools::permute             gtools::quantcut            gtools::rdirichlet
> gtools::running             gtools::scat
> gtools::setTCPNoDelay
> gtools::smartbind           gtools::sprint              gtools::strmacro
>
> I am new to R, and I googled everything about the error message. I don't
> really understand what is "requires the gtools package in the gregmisc
> bundle". tried to install package"gregmisc", did not help.
>
> Could someone please help?
> Thank you very much,
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Error-could-not-find-function-hier-part-tp4429644p4429644.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list