Skip to content

Error: could not find function "hier.part"

3 messages · haiyan, R. Michael Weylandt, Amay

#
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::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.
#
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:
#
Thank you Michael.
I also wrote to the author of this program, Palph, he suggested the same
thing. It worked!!
It is a very useful tool. In case for someone who is interested, I found the
package here:
http://cran.r-project.org/web/packages/hier.part/





--
View this message in context: http://r.789695.n4.nabble.com/Error-could-not-find-function-hier-part-tp4429644p4431998.html
Sent from the R help mailing list archive at Nabble.com.