returning all the functions in the driver script

returning all the functions in the driver script

by Dorottya Harangi -
Number of replies: 1

Hello,

I am having trouble figuring out how to print all the functions in the driver script, as currently the only 1 returned is the last one. I tried using cat() but it gave me the following error message 

Error in cat(chilled.decision.tree(my.data)) : 

  argument 1 (type 'list') cannot be handled by 'cat'

Execution halted


I tried assigning the function to a variable but I still get the same error message.


Any suggestions on how to get around this issue would be great. 

In reply to Dorottya Harangi

Re: returning all the functions in the driver script

by Erik Spence -
Cat works for printing many things, but some things are too complicated for it. In those cases use the 'print' statement. You also probably want to print the summary of the model, rather than the model itself.