[R] provide extra variables to environment in call

2004-10-08 Thread Khamenia, Valery
Hi all, Situation: there is a function `f' already defined by someone and provided in package. `f' looks like that: f - function() { x+1 } i.e. `f' is not closed i.r.t. term `x' now I have my own function `g', where I'd like to override variable `x' while calling `f': x -

AW: AW: [R] constructing specially ordered factor

2004-10-05 Thread Khamenia, Valery
Please follow the posting guide and do your homework before posting, 1. my last homework in university was done a lot of years ago. 2. I always try to follow posting guide. An object of the same type of 'x'. but if an element is equal to one with a smaller index, it is removed.

[R] constructing specially ordered factor

2004-10-04 Thread Khamenia, Valery
Hi all, my colleagues deal with tables, where every factor is represented in two columns. The first column contains some numeric codes and the second contains the corresponding symbolic name. For example: ISEXSSEX 0 Female 1 Male 0 Female 0 Female ... another

AW: [R] constructing specially ordered factor

2004-10-04 Thread Khamenia, Valery
Hi Petr, Thank you for your reply. Factor - function(f,n, decreasing=TRUE, ...) { ooo-order(levels(factor(n)), decreasing=decreasing) my.order-levels(factor(f))[ooo] factor(f, levels=my.order) } it works incorrectly. Indeed, let's apply with your Factor: unames - c(thousands, units,

[R] How to save graphics in portable way in batch mode?

2004-09-30 Thread Khamenia, Valery
Hi all, What is the right portable way to save graphics in batch mode? Remarks: 1. Problem is STFWed and RTFMed. In particular a short note about png() is found in R-FAQ. In fact, there were stated that png() is not reliable under Linux in batch mode. 2. savePlot under windows

AW: [R] How to save graphics in portable way in batch mode?

2004-09-30 Thread Khamenia, Valery
pdf(onefile=FALSE) plot() plot() plot() dev.off() oh, nice hint. The following: pdf(file=aaa%02d.pdf, onefile=FALSE) is very close to compromise, thank you, Chunk! -- Valery. __ [EMAIL PROTECTED] mailing list

AW: AW: [R] built-in Sweave-like documentation in R-2.x

2004-08-11 Thread Khamenia, Valery
An simpler alternative to code would be to allow one to eval-chunk-and-step, stepping through chunks, similar to C-c C-n for stepping through lines. Would this solve the basic problem? 3 x (2 or 3 keystrokes) for 3 chunks. hm, not really ideal... I can't imagine an evaluation which would

AW: AW: [R] built-in Sweave-like documentation in R-2.x

2004-08-10 Thread Khamenia, Valery
Is selecting and 'C-c C-r'-ing the 3 chunks separately that bad? Yes. The UI should take care of it for him. right. Others may have better suggestions. A bit more work on the chunk evaluation approach within Emacs is one; it almost does what is needed, but not quite. why almost,

AW: [R] built-in Sweave-like documentation in R-2.x

2004-08-10 Thread Khamenia, Valery
hi tony, What exactly do you mean by this? 1. generation of Sweave-style docs from R programs or interaction? neither (if i correctly interpret your question). 2. tools for doing docs and analysis at the same time? Emacs Speaks Statistics has supported this with R since last century

[R] built-in Sweave-like documentation in R-2.x

2004-08-09 Thread Khamenia, Valery
Hi devels, i did not find at this page: http://developer.r-project.org/ideas.txt any ideas concerning incorporating documentation possibilities (say, Sweave-based) into R-scripts. Was it discussed already? (If discussed, then what is the decision/conclusion then?) thanks,

AW: [R] built-in Sweave-like documentation in R-2.x

2004-08-09 Thread Khamenia, Valery
See the 'Writing R Extensions' manual, specifically Creating R Packages - Writing package vignettes thank you, i saw this entry. However, this entry is rather about how to include documents (in particular Sweave-based) into a package. But I have meant smth else. Let me explain in example.

[R] SMP, Single System Image clustering, multithreading

2004-07-13 Thread Khamenia, Valery
Hi All, I have looked through the following thread: http://tolstoy.newcastle.edu.au/R/help/02b/4551.html and would like to ask after 1.5 year the same question: Are there any plans to involve multithread computations in R? Few word about my motivation: I use R on my OpenSSI

[R] LLVM for next R generations

2004-07-13 Thread Khamenia, Valery
Hi R-developers, R (unlike say C++) is rather interactive/interpreter language with some high-order functions support. There is a nice project, which able to bring exactly these type of language implementations to a next performance level. I mean LLVM (http://llvm.cs.uiuc.edu/) LLVM

[R] calling R from C

2003-07-21 Thread Khamenia, Valery
Hi All, We'd like to use functions provided in R in our application. Our application is written in C/C++ and currently runs on win32, Linux and Mac. We'd be happy to attach the whole R ( i.e. not just transfer some function by hand). The important detail is that we deal with big amount

[R] calling R from C

2003-07-21 Thread Khamenia, Valery
Hi All, We'd like to use functions provided in R in our application. Our application is written in C/C++ and currently runs on win32, Linux and Mac. We'd be happy to attach the whole R ( i.e. not just transfer some function by hand). It is important that we deal with big amount of