marjoleinF / pre

an R package for deriving Prediction Rule Ensembles
58 stars 17 forks source link

Standard Input: argument lengths differ ERROR #11

Closed nikrepp closed 6 years ago

nikrepp commented 6 years ago

set.seed(42) airq.ens <- pre(Ozone ~ ., data = airquality[complete.cases(airquality),]) calculate global importances: importance(airq.ens) Error in order(baseimps$imp, decreasing = TRUE, method = "radix") : argument lengths differ

marjoleinF commented 6 years ago

Thanks for reporting this issue. The code does not yield an error on my system. Can you report what version of R and what OS you are running?

nikrepp commented 6 years ago

Hi,

thanks for quick feedback.

R-3.1.2, OS Windows 10.

marjoleinF commented 6 years ago

You're welcome! Upgrading to the current R version may solve the error.

The release notes for R 3.3.0 state that 'The order() function gains a method argument for choosing between "shell" and "radix".' The older implementation of order() likely causes the problem.