[R] why delete.response?

Saket Joshi joshi at engr.orst.edu
Fri Aug 23 21:50:23 CEST 2002

Hi all,

I am running R1.5.0 under unix.

I recently used the function 'predict.tree' to make predictions with a
tree object and a dataframe of numeric items. The predict.tree internally,
calls a function 'delete.response'.

When I removed this function call from the source code of predict.tree, it
ran 10 times faster without any differences in the result obtained.
The documentation for delete.response says that this function is used for
deleting the response variable from the dataset. However the documentation
for the predict.tree function says that the response variable is ignored
during prediction.

Could someone tell me why the function 'predict.tree' calls

Thanks in advance,

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list