Re: [R] Problem executing function

2011-10-12 Thread Divyam
Hi Michael, Thanks for the reply, but still the problem exists. When I list the objects and return the result, they get printed on the console but the objects do not get created. I am really baffled and clueless as to what the problem is. Divya -- View this message in context:

Re: [R] Problem executing function

2011-10-12 Thread Divyam
ok. I tested it in two ways. I want to externalise my odbcConnection details dsn, uid, and pwd. Hence I created a csv file to have these information. Like I showed in the sample function initially, the order of the steps were 1) loading of the packages, 2) fetching the csv file, 3)assigning the

Re: [R] Problem executing function

2011-10-12 Thread Divyam
sorry correction in the first and result hence received code: ok. I tested it in two ways. I want to externalise my odbcConnection details dsn, uid, and pwd. Hence I created a csv file to have these information. Like I showed in the sample function initially, the order of the steps were 1)

Re: [R] Problem executing function

2011-10-12 Thread Divyam
Thanks a lot Duncan! It works fine now. Divya -- View this message in context: http://r.789695.n4.nabble.com/Problem-executing-function-tp3894359p3898054.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing

[R] Problem executing function

2011-10-11 Thread Divyam
Hello All, I have a series of steps that needs to be run many times. Hence I put them all into a function. There is no problem in function creation, but when I call the function, the steps are not getting executed or only the first step gets executed. What possibly could be the reason? Sample

Re: [R] handling constant factors in prediction using svm

2011-10-07 Thread Divyam
Ok. I should have made the question clearer. By asking is there anyway to solve this problem, what I meant was, how to give exceptions to such scenarios. My mistake and apologies for that. I can understand why prediction cannot be done when a trained variable is missing in the test set :). thanks

[R] handling constant factors in prediction using svm

2011-10-04 Thread Divyam
Hi users! I am fitting a model with several factor variables as independents using svm. since there are lots of categorical variables,the training and test data sets have been created using dummy.data.frame option from dummies package. I have a factor A in the training data set with 2 levels

[R] Help in SVM prediction

2011-09-13 Thread Divyam
Hello, I am trying to use SVM from e1071 package for doing binary classification and I am having problems in prediction using SVM. I ran a SVM for X~as.factor(X1)+as.factor(X2)+as.factor(X3),data=data1,cross=10. str(data1) gives me data.frame':5040 obs. of 5 variables: $ X4: int 1 2 3

Re: [R] predictive modeling and extremely large data

2011-09-08 Thread Divyam
Hi Steve, Thanks for the reply. I am a complete novice to R and to using SVM as well and therefore the terms that I'd used maybe non standard(I am not sure how to call them technically). Nevertheless the number of data points I had mentioned are just instances. But as I mentioned, these are bound

[R] Handling ever growing data in svm predictions

2011-09-07 Thread Divyam
Hi, I am new to R and here is what I am doing in it now. I am using machine learning technique (svm) to do predictions. The data that I am using is one that is bound to grow perpetually. what I want to know is, say, I fed in a data set with 5000 data points to svm initially. The algorithm derives

[R] predictive modeling and extremely large data

2011-09-07 Thread Divyam
Hi, I am new to R and here is what I am doing in it now. I am using machine learning technique (svm) to do predictive modeling. The data that I am using is one that is bound to grow perpetually. what I want to know is, say, I fed in a data set with 5000 data points to svm initially. The algorithm