fawda123 / NeuralNetTools

R package of generic neural network tools
https://fawda123.github.io/NeuralNetTools/
Creative Commons Zero v1.0 Universal
71 stars 20 forks source link

olden.default fails if output variable has some special characters #19

Closed taunometsalu closed 6 years ago

taunometsalu commented 6 years ago

With some characters in the out_var (e.g. if the levels are calculated using cut()), the following line fails:

out_ind <- grep(out_var, y_names)

It could be changed to fixed grep:

out_ind <- grep(out_var, y_names, fixed = TRUE)

fawda123 commented 6 years ago

Fixed on dev branch: d44092563ca32e1984eec38cc890f31d12dbc783