config-i1 / greybox

Regression model building and forecasting in R
30 stars 7 forks source link

mcor: x works only if numeric? #25

Closed ZellW closed 5 years ago

ZellW commented 5 years ago

The mcor documentation example works: mcor(mtcars$am, mtcars$mpg). However, when mcor x is a factor like the example you provide here, mcor(mtcarsData$am, mtcarsData$mpg) fails with this error:

Error in terms.formula(object, data = data) : '.' in formula and no 'data' argument

config-i1 commented 5 years ago

Thanks for the report. Have you tried the version on github? I think that I've found this bug and managed to fix it in greybox v0.4.1.41003, the version on github. I will upload this version on CRAN next week.