[R] In svm(), how to connect quantitative prediction result to categorical result?

2011-04-08 Thread Li, Yunfei
Hi, I am studying using SVM functions of e1071 package to do prediction, and I found during the training data are "factor" type, then svm.predict() can predict data directly by categories; but if response variables are "numerical", the predicted value from svm will be continuous quantitative nu

[R] A question about "txtProgressBar" function

2011-04-08 Thread Li, Yunfei
Hi, I tried to add a progress bar to my script, but it seems the "txtProgressBar" function will wipe out what I want to print before it(for example - the "Hello" in following script), and the parameters "title" and "label" do not work either. How can I put a title for the progress bar? or is th

[R] How to update R?

2011-03-31 Thread Li, Yunfei
Hi, My R version is old, and I would like to update it. How can I update R and keep all the libraries? Thanks Best, Yunfei Li -- Research Assistant Department of Statistics & School of Molecular Biosciences Biot