Hallo, once again I have a question. Maybe someone can help me. I call in my programm (VC++) the Rterm.exe via "Rterm.exe --no-restore --no-save < example.R >example.Rout". In example.R : temperaturfeld <- read.table(file.choose(), header = TRUE, sep= "", comment.char = "#") temperaturmatrix <- data.matrix(temperaturfeld) windows() image(x,y,temperaturmatrix,axes=TRUE, xlab= "Matrix-row", ylab="Matrix-column") Now my problem: How you see, I open in example.R a window via windows() to display the image(....), but Rterm.exe closes after executing all example.R commands and I want to keep the window active, so that I can use the window-menue. Question: Which command can I use in example.R or what else can I do that I can keep the window active? Thanks for helping me. Ales Lacen e - mail: lacen at eos-gmbh.de -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
ripley@stats.ox.ac.uk
2002-Jun-21 07:49 UTC
[R] Keeping a graphics window active at the end of a rterm batch session (was Question)
Search the archives, as this has been answered before. Please use an informative subject, so other people can use search on *your* questions. The short answer is to call a dialog box at the end of your script asking to finish the session: see ?winDialog On Fri, 21 Jun 2002 Lacen at EOS-GmbH.de wrote:> Hallo, > once again I have a question. Maybe someone can help me. > > I call in my programm (VC++) the Rterm.exe via "Rterm.exe --no-restore > --no-save < example.R >example.Rout". > In example.R : > temperaturfeld <- read.table(file.choose(), header = TRUE, sep= "", > comment.char = "#") > temperaturmatrix <- data.matrix(temperaturfeld) > windows() > image(x,y,temperaturmatrix,axes=TRUE, xlab= "Matrix-row", > ylab="Matrix-column") > > Now my problem: > How you see, I open in example.R a window via windows() to display the > image(....), but Rterm.exe closes after executing all example.R commands and > I want to keep the window active, so that I can use the window-menue. > > Question: > Which command can I use in example.R or what else can I do that I can keep > the window active? > > Thanks for helping me. > > Ales Lacen > e - mail: lacen at eos-gmbh.de > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > r-help mailing list -- Read ci.tuwien.ac.at/~hornik/R/R-FAQ.html > Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, stats.ox.ac.uk/~ripley University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Does R provide a func to calc Fractal Dimensions from time-series data ? Thanks (Please use Reply All as I may be at home when you respond. Thanks again.) This message is for the named person's use only. It may contain sensitive and private proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE FIRST BOSTON or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT SUISSE FIRST BOSTON reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. Unless otherwise stated, any pricing information given in this message is indicative only, is subject to change and does not constitute an offer to deal at any price quoted. Any reference to the terms of executed transactions should be treated as preliminary only and subject to our formal written confirmation. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Dear Adai, unfortunately, you currently can't extend the kernel set at the R level (and due to performance issues this probably will never be possible). (It's quite simple at the C-level, though). But I think an option for providing the computed kernel values would be a useful feature easy to add; I cc: this mail to Chih-Jen Lin, the author of LIBSVM, perhaps he agrees. g., -d> Adaikalavan Ramasamy wrote: > > I am trying to use the svm function in E1071 package. It does come > with built in kernel functions like radial, linear etc. I wish to use > the radial basis function but with a constant added to the diagonal of > the kernel (or Gram) matrix. This was the suggested method in a paper > UCSC-CRL-99-09 Brown et al. > > So I wrote the following code, [which works correctly if I test on two > vectors manually] > > kernel.new.fn <- function(u,v) > { exp(-gamma*det(t(u-v)%*%(u-v), method="qr")) + > ifelse(identical(u, v), 0.1 ,0) } > > But when I try to run the code, I get the following error: > > > test.svm <- svm( X , Ysvm, kernel="kernel.new.fn") > Error in svm.default(X.complete, Ysvm[, 3], kernel = "kernel.new.fn") > : > wrong kernel specification! > > I am guessing the problem being svm.default does not recognise > "kernel.new.fn". > svm.default calls a C file "svmtrain" to do the calculations. > > Q1: Is there an exisiting option to add a constant to the diagonal of > the kernel ?no.> Q2: Is there a way I can get svm.default to recognise there is new > option called kernel.new.fn externally without meddling with C > file which I am not so familiar with.no.> [OR equivalently is there a way of feeding in the > computed kernel instead - I can do this manually using a loop]again, no.> > This is as much due to my lack of programming as it is to my lack of > experience with svm. > > Many thanks in advance, Adai. > > > > > >-- Mag. David Meyer Wiedner Hauptstrasse 8-10 Vienna University of Technology A-1040 Vienna/AUSTRIA Department of Tel.: (+431) 58801/10772 Statistics and Probability Theory mail: david.meyer at ci.tuwien.ac.at -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._