az0 / mlmeta

Machine Learning Metaprogramming for R
GNU General Public License v2.0
8 stars 4 forks source link

problem converting ctree into SAS #8

Closed spedygiorgio closed 8 years ago

spedygiorgio commented 8 years ago

I am using your code 4 converting ctree into SAS and receive the following error: Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘nodes’ for signature ‘"train", "numeric"’

az0 commented 8 years ago

Could you please give a brief code example I could run?

Are you using ctree from partykit packge or from the party package?

spedygiorgio commented 8 years ago

It was a my fault. Your code works extremely properly. Just a suggestion, is it possible to substitute ' with " when grouping categorical covariates into in ('FIRST', 'SECOND ITEM')?

az0 commented 8 years ago

For yourself you can do writeLines(gsub('"', "'", '"foo1","foo2"')), and if you think there is a reason to do this for all users, please open a new ticket