Re: [R] svm models in a loop

2008-10-11 Thread Alexy Khrabrov
On Oct 12, 2008, at 2:26 AM, Prof Brian Ripley wrote: You need to use substitute() on the call. Something like sapply(1:5,function(i) eval(substitute(svm(person_oid ~ ., data=zrr[1:N,]), list(N=100*i)) ) Thanks! On Sun, 12 Oct 2008, Alexy Khrabrov wrote: I want to train sv

Re: [R] svm models in a loop

2008-10-11 Thread Prof Brian Ripley
You need to use substitute() on the call. Something like sapply(1:5,function(i) eval(substitute(svm(person_oid ~ ., data=zrr[1:N,]), list(N=100*i)) ) On Sun, 12 Oct 2008, Alexy Khrabrov wrote: I want to train svm models on increasingly large training data subsets of some zrr as f