R Leaps Package: Regsubsets - coef "Reordr" Fortran error -


i'm using r leaps package obtain fit data: (my dataframe df contains y variable , 41 predictor variables)

require(leaps)  n=3 regsubsets(y ~ ., data = df, nbest=1, nvmax=n+1,force.in="x", method = 'exhaustive')-> regfit  coef(regfit,id = n) 

when run code more once (the first time works fine) following error when run coef command:

error in .fortran("reordr", np = as.integer(object$np), nrbar = as.integer(object$nrbar), : "reordr" not resolved current namespace (leaps)

any why happening appreciated. a.

i had build package source inserting (package = 'leaps') argument reordr function in leaps.r file. works fine every time.

the solution related to:

r: error message --- package error: "functionname" not resolved current namespace


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -