[Rd] delete.response() incorrectly handles terms-objects (PR#1327)
Mon, 25 Feb 2002 16:44:55 +0100 (MET)
Prof Brian D Ripley wrote:
> Thanks, fixed now.
> Why were you calling delete.response on an object with no response, BTW?
I used it in predict.svm(), and the terms-object contained in the svm
model just happens to have no response for the ``one-class
classification'' if svm was called e.g. by:
m <- svm(~a+b).
Because of the second line in delete.response()
if (length(f) == 3)
f[] <- NULL
handling the no-response case, I believed I was allowed to use
delete.response() without checking for this.
> I wonder whether delete.response should not be a no-op in that case (it is
> in S), if there is any reason to handle it at all.
So people will have to check for it before using delete.response() -
this is probably more secure indeed.
Mag. David Meyer Wiedner Hauptstrasse 8-10
Vienna University of Technology A-1040 Vienna/AUSTRIA
Department for Tel.: (+431) 58801/10772
Statistics and Probability Theory mail: email@example.com
r-devel 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: firstname.lastname@example.org