[R] Simulating key-press or keyword events on a Mac

2012-09-05 Thread Reza Salimi-Khorshidi
Hello all, Can someone please tell me how I can simulate a key press (particularly arrow keys and space bar) on a Mac? Any help is much appreciated. Cheers [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.et

Re: [R] kernlab | ksvm error

2012-08-26 Thread Reza Salimi-Khorshidi
Thanks Uwe, Am I right that in ksvm's internal cross-validation, there is no guarantee for having *at least one* of each classes in each subset? Some randomness is involved, and when you get an unfortunate subsample > (e.g. if in the internal cross-validation one class is not selected at all) > it

Re: [R] kernlab | ksvm error

2012-08-24 Thread Reza Salimi-Khorshidi
Dear Uwe, I appreciate that if you let me know why, when using the attached file, the following script (two lines) doesn't work once in 10s of times. Best, Reza svm.pol4 <- ksvm(class.labs ~ ., data = train.data, prob.model = T, scale = T, kernel = "polydot") svm.pol.prd4 <- predict(svm.pol4, tra

Re: [R] kernlab | ksvm error

2012-08-19 Thread Reza Salimi-Khorshidi
Hi Uwe, I can attach the data file to an email or send you a link so you can download it. Which one do you prefer? Thanks for your help ... Best, Reza On Sun, Aug 19, 2012 at 4:10 PM, Uwe Ligges wrote: > > > On 19.08.2012 11:06, Reza Salimi-Khorshidi wrote: > >> Dear list,

[R] kernlab | ksvm error

2012-08-19 Thread Reza Salimi-Khorshidi
Dear list, I am using the ksvm function from kernlab as follows: (1) learning > svm.pol4 <- ksvm(class.labs ~ ., data = train.data, prob.model = T, scale = T, kernel = "polydot") (2) prediction > svm.pol.prd4 <- predict(svm.pol4, train.data, type = "probabilities")[,2] But unfortunately, when ca

Re: [R] Problem sourcing file

2012-05-27 Thread Reza Salimi-Khorshidi
Seems Duncan's solutions worked. I installed R 2.15.0 and it seems to work fine ... Thanks fellas. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Problem sourcing file

2012-05-27 Thread Reza Salimi-Khorshidi
It is simply a bunch of web-scraping routines that if copied in the R command line (for more than 100s of times) works fine, BUT if capsulated in myFiles.R and invoked by source command, can ONLY be called once. So, seems weird and I can't figure out a solutions, as it's the first time I encountere

Re: [R] Problem sourcing file

2012-05-27 Thread Reza Salimi-Khorshidi
Hi all, I have the exact same problem in R 2.14.0, which does not seem to be due to using the quotation mark. When I say source("~/Documents/myFile.R") for the first time (after I start R), it works fine, but when I run it for a second time (even when I empty the workspace and rerun every thing, ju

[R] Need help with scraping Google Insight

2012-04-11 Thread Reza Salimi-Khorshidi
Hi all, I appreciate that if someone please help me with an R solution/code/library for scraping Google Insight data. It seems difficult to get hold of the URL corresponding to the resulting CSV file that is appropriate for *read.csv*or another similar function. Best, R [[alternative HTML

Re: [R] pause code in R code?

2012-04-01 Thread Reza Salimi-Khorshidi
__ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Reza Salimi-Khorshidi,

[R] How can I extract the weights (for feature selection) from linear KSVM?

2012-03-31 Thread Reza Salimi-Khorshidi
lp is much appreciated. Best, -- Reza Salimi-Khorshidi, D.Phil. (Oxon) Analysis Group, FMRIB Centre of the University of Oxford Email: r...@fmrib.ox.ac.uk Address: FMRIB Centre, John Radcliffe Hospital, Oxford OX3 9DU, UK [[alternative HTML version deleted]] __

[R] calculating joint entropy of many variables

2011-10-30 Thread Reza Salimi-Khorshidi
Hello list. I need help (e.g., a reference, code, package, etc.) in calculating the joint entropy of many variables (some sure highly mutually-informative and some not). Is there anyone here who knows a computationally-efficient solution (such as an R package)? I appreciate you help ... Best, Reza

Re: [R] "graph"

2011-09-18 Thread Reza Salimi-Khorshidi
Hi Sandy, This might help: http://stackoverflow.com/questions/1474081/how-do-i-install-an-r-package-from-source Best, Reza [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PL

Re: [R] Choropleth in R

2011-08-26 Thread Reza Salimi-Khorshidi
Thanks Jean. This is really helpful; it does the job (almost) at least for the initial analyses. However, I think I will need to do more research on the choropleth after my initial analyses. Best, Reza [[alternative HTML version deleted]] __ R-h

Re: [R] Choropleth in R

2011-08-25 Thread Reza Salimi-Khorshidi
25, 2011 at 3:50 PM, Jean V Adams wrote: > > Check out the maps package for a choropleth map. Specifically the map() > function (and its argument col=). > > ?map > > Check out the image() function for a heat map which can be overlaid. > > ?image > > Jean

[R] Choropleth in R

2011-08-25 Thread Reza Salimi-Khorshidi
Hi all, I would like to use R in order to generate a Heatmap/Choropleth overlaid on the UK map. Can someone please help with finding the right package/code? Any help is much appreciated. Best, Reza [[alternative HTML version deleted]] __ R-help@